home *** CD-ROM | disk | FTP | other *** search
Unknown | 1990-06-15 | 187.0 KB | [WCFG/VECT] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
id metadata |
---|
key | value |
---|
macFileType | [WCFG] |
macFileCreator | [VECT] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 03 14 00 02 c1 35 00 02 | eb d3 00 00 00 00 00 00 |.....5..|........|
|00000010| 00 00 00 00 00 42 00 02 | 78 09 00 00 00 00 00 00 |.....B..|x.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 02 78 09 00 02 | c1 35 00 00 00 00 00 00 |....x...|.5......|
|00000040| 00 00 00 40 00 0c 46 69 | 6e 64 53 4b 55 4c 73 74 |...@..Fi|ndSKULst|
|00000050| 32 00 00 eb 0d 09 73 65 | 74 20 73 6b 75 6e 75 6d |2.....se|t skunum|
|00000060| 20 33 32 31 39 39 39 3b | 0d 09 66 6f 72 20 69 20 | 321999;|..for i |
|00000070| 3d 20 25 31 73 74 61 72 | 74 20 74 6f 20 25 31 65 |= %1star|t to %1e|
|00000080| 6e 64 20 28 0d 09 09 73 | 65 74 20 66 6f 6f 73 74 |nd (...s|et foost|
|00000090| 72 20 7b 67 65 74 4c 69 | 6e 65 20 73 74 6f 63 6b |r {getLi|ne stock|
|000000a0| 72 65 63 6f 72 64 2e 6c | 73 74 20 24 69 20 24 69 |record.l|st $i $i|
|000000b0| 7d 3b 0d 09 09 69 66 20 | 28 7b 72 61 6e 67 65 20 |};...if |({range |
|000000c0| 30 20 32 20 24 66 6f 6f | 73 74 72 7d 20 22 3d 3d |0 2 $foo|str} "==|
|000000d0| 20 28 25 32 29 29 20 28 | 0d 09 09 09 73 65 74 20 | (%2)) (|....set |
|000000e0| 73 6b 75 6e 75 6d 20 7b | 69 6e 64 65 78 20 34 20 |skunum {|index 4 |
|000000f0| 24 66 6f 6f 73 74 72 7d | 3b 0d 20 20 20 62 72 65 |$foostr}|;. bre|
|00000100| 61 6b 3b 6e 6f 6f 70 20 | 2a 2a 2a 2a 2a 2a 2a 2a |ak;noop |********|
|00000110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000120| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000130| 3b 0d 09 09 09 29 3b 0d | 09 09 29 3b 0d 09 00 00 |;....);.|..);....|
|00000140| 40 00 0d 53 68 6f 72 74 | 2d 38 30 30 30 36 36 00 |@..Short|-800066.|
|00000150| 00 08 56 69 65 77 31 32 | 35 00 00 40 00 0c 44 6f |..View12|5..@..Do|
|00000160| 48 61 6e 64 4d 61 74 63 | 68 00 02 8b 0d 20 70 72 |HandMatc|h.... pr|
|00000170| 65 63 69 73 69 6f 6e 20 | 34 3b 0d 20 45 6c 65 76 |ecision |4;. Elev|
|00000180| 56 65 63 32 20 3d 20 25 | 31 2b 45 6c 65 76 56 65 |Vec2 = %|1+ElevVe|
|00000190| 63 32 3b 0d 20 45 6c 65 | 76 56 65 63 34 20 3d 20 |c2;. Ele|vVec4 = |
|000001a0| 45 6c 65 76 56 65 63 33 | 2d 44 69 72 31 2a 31 2e |ElevVec3|-Dir1*1.|
|000001b0| 35 2f 31 32 3b 0d 20 45 | 6e 64 43 75 72 4c 69 6e |5/12;. E|ndCurLin|
|000001c0| 65 3b 0d 09 6d 61 74 63 | 68 20 28 25 35 29 0d 09 |e;..matc|h (%5)..|
|000001d0| 09 35 35 09 09 28 0d 09 | 09 09 09 09 61 64 64 43 |.55..(..|....addC|
|000001e0| 75 72 50 74 20 45 6c 65 | 76 56 65 63 33 20 45 6c |urPt Ele|vVec3 El|
|000001f0| 65 76 56 65 63 34 20 45 | 6c 65 76 56 65 63 32 20 |evVec4 E|levVec2 |
|00000200| 25 32 2b 45 6c 65 76 56 | 65 63 3b 0d 09 09 09 09 |%2+ElevV|ec;.....|
|00000210| 09 64 65 66 56 6f 6c 42 | 6f 78 20 37 20 72 65 64 |.defVolB|ox 7 red|
|00000220| 20 48 61 6e 64 54 3b 0d | 09 09 09 09 09 44 6f 48 | HandT;.|.....DoH|
|00000230| 61 6e 64 42 4f 4d 20 45 | 6c 65 76 56 65 63 33 20 |andBOM E|levVec3 |
|00000240| 45 6c 65 76 56 65 63 34 | 20 45 6c 65 76 56 65 63 |ElevVec4| ElevVec|
|00000250| 32 20 25 32 2b 45 6c 65 | 76 56 65 63 3b 0d 09 09 |2 %2+Ele|vVec;...|
|00000260| 09 09 09 29 0d 09 09 35 | 36 09 09 28 0d 09 09 09 |...)...5|6..(....|
|00000270| 09 09 69 66 20 28 7b 3f | 44 69 72 33 7d 20 22 3d |..if ({?|Dir3} "=|
|00000280| 3d 20 7b 3f 44 69 72 31 | 7d 29 20 28 0d 09 09 09 |= {?Dir1|}) (....|
|00000290| 09 09 09 61 64 64 43 75 | 72 50 74 20 45 6c 65 76 |...addCu|rPt Elev|
|000002a0| 56 65 63 33 20 45 6c 65 | 76 56 65 63 34 20 45 6c |Vec3 Ele|vVec4 El|
|000002b0| 65 76 56 65 63 32 09 25 | 32 2b 45 6c 65 76 56 65 |evVec2.%|2+ElevVe|
|000002c0| 63 2b 44 69 72 32 2a 31 | 2e 35 2f 31 32 3b 0d 09 |c+Dir2*1|.5/12;..|
|000002d0| 09 09 09 09 09 64 65 66 | 56 6f 6c 42 6f 78 20 37 |.....def|VolBox 7|
|000002e0| 20 72 65 64 20 48 61 6e | 64 54 3b 0d 09 09 09 09 | red Han|dT;.....|
|000002f0| 09 09 44 6f 48 61 6e 64 | 42 4f 4d 20 45 6c 65 76 |..DoHand|BOM Elev|
|00000300| 56 65 63 33 20 45 6c 65 | 76 56 65 63 34 20 45 6c |Vec3 Ele|vVec4 El|
|00000310| 65 76 56 65 63 32 20 25 | 32 2b 45 6c 65 76 56 65 |evVec2 %|2+ElevVe|
|00000320| 63 2b 44 69 72 32 2a 31 | 2e 35 2f 31 32 3b 0d 09 |c+Dir2*1|.5/12;..|
|00000330| 09 09 09 09 09 29 0d 09 | 09 09 09 09 65 6c 73 65 |.....)..|....else|
|00000340| 20 28 0d 09 09 09 09 09 | 09 61 64 64 43 75 72 50 | (......|.addCurP|
|00000350| 74 20 45 6c 65 76 56 65 | 63 33 20 45 6c 65 76 56 |t ElevVe|c3 ElevV|
|00000360| 65 63 34 20 45 6c 65 76 | 56 65 63 32 09 25 32 2b |ec4 Elev|Vec2.%2+|
|00000370| 45 6c 65 76 56 65 63 2d | 44 69 72 32 2a 31 2e 35 |ElevVec-|Dir2*1.5|
|00000380| 2f 31 32 3b 0d 09 09 09 | 09 09 09 64 65 66 56 6f |/12;....|...defVo|
|00000390| 6c 42 6f 78 20 37 20 72 | 65 64 20 48 61 6e 64 54 |lBox 7 r|ed HandT|
|000003a0| 3b 0d 09 09 09 09 09 09 | 44 6f 48 61 6e 64 42 4f |;.......|DoHandBO|
|000003b0| 4d 20 45 6c 65 76 56 65 | 63 33 20 45 6c 65 76 56 |M ElevVe|c3 ElevV|
|000003c0| 65 63 34 20 45 6c 65 76 | 56 65 63 32 20 25 32 2b |ec4 Elev|Vec2 %2+|
|000003d0| 45 6c 65 76 56 65 63 2d | 44 69 72 32 2a 31 2e 35 |ElevVec-|Dir2*1.5|
|000003e0| 2f 31 32 3b 0d 09 09 09 | 09 09 09 29 3b 0d 09 09 |/12;....|...);...|
|000003f0| 09 09 09 29 0d 09 00 00 | 40 00 0c 44 72 61 77 4a |...)....|@..DrawJ|
|00000400| 6f 69 73 74 73 31 00 01 | 49 0d 20 6c 61 79 65 72 |oists1..|I. layer|
|00000410| 20 63 75 72 72 65 6e 74 | 20 33 35 3b 0d 20 53 6f | current| 35;. So|
|00000420| 72 74 50 6f 73 74 53 74 | 61 63 6b 73 3b 0d 20 54 |rtPostSt|acks;. T|
|00000430| 65 6d 70 31 20 3d 20 45 | 6c 65 76 25 31 2d 50 6c |emp1 = E|lev%1-Pl|
|00000440| 61 6e 6b 54 68 2d 30 2e | 30 32 3b 0d 20 4a 41 25 |ankTh-0.|02;. JA%|
|00000450| 31 31 20 3d 20 69 6e 74 | 28 28 57 25 31 31 2d 32 |11 = int|((W%11-2|
|00000460| 2a 52 42 29 2f 4a 53 70 | 61 63 65 2d 31 29 3b 0d |*RB)/JSp|ace-1);.|
|00000470| 20 53 74 4f 66 66 25 31 | 20 3d 20 28 28 57 25 31 | StOff%1| = ((W%1|
|00000480| 31 2d 52 42 29 2d 28 4a | 41 25 31 31 2a 4a 53 70 |1-RB)-(J|A%11*JSp|
|00000490| 61 63 65 29 29 2f 32 3b | 0d 66 6f 72 20 69 20 3d |ace))/2;|.for i =|
|000004a0| 20 30 20 74 6f 20 4a 41 | 25 31 31 20 28 0d 20 4a | 0 to JA|%11 (. J|
|000004b0| 4c 20 3d 20 4f 4c 25 31 | 31 2d 32 2a 52 42 3b 44 |L = OL%1|1-2*RB;D|
|000004c0| 53 20 3d 20 43 50 74 58 | 25 31 31 2b 52 42 3b 0d |S = CPtX|%11+RB;.|
|000004d0| 20 54 65 6d 70 33 20 3d | 20 43 50 74 59 25 31 31 | Temp3 =| CPtY%11|
|000004e0| 2d 52 42 2d 69 2a 4a 53 | 70 61 63 65 2d 53 74 4f |-RB-i*JS|pace-StO|
|000004f0| 66 66 25 31 3b 0d 20 54 | 65 6d 70 33 61 20 3d 20 |ff%1;. T|emp3a = |
|00000500| 43 50 74 59 25 31 31 2d | 52 42 2d 69 2a 4a 53 70 |CPtY%11-|RB-i*JSp|
|00000510| 61 63 65 2d 53 74 4f 66 | 66 25 31 2b 4a 57 3b 0d |ace-StOf|f%1+JW;.|
|00000520| 20 54 65 6d 70 32 20 3d | 20 44 53 3b 0d 20 44 72 | Temp2 =| DS;. Dr|
|00000530| 61 77 4a 6f 69 73 74 56 | 6f 6c 73 20 25 31 20 31 |awJoistV|ols %1 1|
|00000540| 3b 0d 20 29 3b 0d 20 65 | 6e 64 43 75 72 4c 6e 3b |;. );. e|ndCurLn;|
|00000550| 0d 00 00 40 00 0c 46 72 | 61 6d 65 44 69 61 6c 6f |...@..Fr|ameDialo|
|00000560| 67 00 00 d3 0d 20 6d 61 | 6b 65 52 65 63 74 20 64 |g.... ma|keRect d|
|00000570| 6c 6f 67 20 30 20 30 20 | 25 31 20 25 32 3b 0d 20 |log 0 0 |%1 %2;. |
|00000580| 73 65 74 20 4f 4c 44 52 | 4d 4f 44 45 20 24 52 4d |set OLDR|MODE $RM|
|00000590| 4f 44 45 3b 0d 20 73 65 | 74 20 52 4d 4f 44 45 20 |ODE;. se|t RMODE |
|000005a0| 73 71 75 61 72 65 3b 0d | 20 6d 6f 64 69 66 79 52 |square;.| modifyR|
|000005b0| 65 63 74 20 64 6c 6f 67 | 20 66 72 61 6d 65 3b 0d |ect dlog| frame;.|
|000005c0| 20 69 6e 73 65 74 52 65 | 63 74 20 64 6c 6f 67 20 | insetRe|ct dlog |
|000005d0| 32 20 32 3b 0d 20 73 65 | 74 50 65 6e 20 32 20 32 |2 2;. se|tPen 2 2|
|000005e0| 20 38 20 42 6c 61 63 6b | 50 61 74 3b 0d 20 6d 6f | 8 Black|Pat;. mo|
|000005f0| 64 69 66 79 52 65 63 74 | 20 64 6c 6f 67 20 66 72 |difyRect| dlog fr|
|00000600| 61 6d 65 3b 0d 20 73 65 | 74 20 52 4d 4f 44 45 20 |ame;. se|t RMODE |
|00000610| 24 4f 4c 44 52 4d 4f 44 | 45 3b 0d 20 64 65 6c 52 |$OLDRMOD|E;. delR|
|00000620| 65 63 74 20 64 6c 6f 67 | 3b 0d 20 70 65 6e 4e 6f |ect dlog|;. penNo|
|00000630| 72 6d 61 6c 3b 0d 00 00 | 40 00 0f 44 72 61 77 53 |rmal;...|@..DrawS|
|00000640| 74 61 69 72 56 6f 6c 73 | 32 00 06 b8 0d 09 6c 6f |tairVols|2.....lo|
|00000650| 63 61 6c 56 61 72 20 76 | 65 63 74 6f 72 20 76 70 |calVar v|ector vp|
|00000660| 74 31 20 76 70 74 32 20 | 64 70 74 20 62 72 64 77 |t1 vpt2 |dpt brdw|
|00000670| 64 20 56 65 63 74 6f 72 | 31 20 56 65 63 74 6f 72 |d Vector|1 Vector|
|00000680| 32 3b 0d 20 70 72 65 63 | 69 73 69 6f 6e 20 34 3b |2;. prec|ision 4;|
|00000690| 0d 09 54 6f 70 20 3d 20 | 5b 30 2c 30 2c 45 6c 65 |..Top = |[0,0,Ele|
|000006a0| 76 25 34 2b 48 61 6e 64 | 48 67 68 74 5d 3b 0d 20 |v%4+Hand|Hght];. |
|000006b0| 69 66 20 28 53 74 65 70 | 4f 66 25 34 20 3e 20 31 |if (Step|Of%4 > 1|
|000006c0| 29 0d 09 20 28 42 61 73 | 65 20 3d 20 44 69 72 2a |).. (Bas|e = Dir*|
|000006d0| 7b 3f 28 53 74 65 70 4f | 66 25 34 2d 32 29 2a 28 |{?(StepO|f%4-2)*(|
|000006e0| 31 31 2f 31 32 29 2b 31 | 38 2e 35 2f 31 32 7d 29 |11/12)+1|8.5/12})|
|000006f0| 0d 20 65 6c 73 65 20 28 | 42 61 73 65 20 3d 20 44 |. else (|Base = D|
|00000700| 69 72 2a 31 38 2e 35 2f | 31 32 29 3b 0d 20 56 65 |ir*18.5/|12);. Ve|
|00000710| 63 74 6f 72 31 20 3d 20 | 25 31 2b 54 6f 70 2b 5b |ctor1 = |%1+Top+[|
|00000720| 30 2c 30 2c 2d 45 6c 65 | 76 25 34 5d 2b 42 61 73 |0,0,-Ele|v%4]+Bas|
|00000730| 65 2b 44 69 72 2a 28 33 | 2f 31 32 29 3b 0d 09 61 |e+Dir*(3|/12);..a|
|00000740| 64 64 43 75 72 50 74 20 | 25 31 2b 54 6f 70 20 56 |ddCurPt |%1+Top V|
|00000750| 65 63 74 6f 72 31 20 56 | 65 63 74 6f 72 31 2b 5b |ector1 V|ector1+[|
|00000760| 30 2c 30 2c 2d 35 2f 31 | 32 5d 20 25 31 2b 54 6f |0,0,-5/1|2] %1+To|
|00000770| 70 2b 5b 30 2c 30 2c 2d | 35 2f 31 32 5d 20 25 31 |p+[0,0,-|5/12] %1|
|00000780| 2b 54 6f 70 2d 28 31 2e | 35 2f 31 32 29 2a 44 69 |+Top-(1.|5/12)*Di|
|00000790| 72 32 3b 0d 09 64 65 66 | 56 6f 6c 45 78 74 72 75 |r2;..def|VolExtru|
|000007a0| 73 69 6f 6e 20 37 20 72 | 65 64 20 48 61 6e 64 52 |sion 7 r|ed HandR|
|000007b0| 3b 0d 09 61 64 64 43 75 | 72 50 74 20 25 31 2b 54 |;..addCu|rPt %1+T|
|000007c0| 6f 70 2b 5b 30 2c 30 2c | 2d 37 2f 31 32 5d 20 56 |op+[0,0,|-7/12] V|
|000007d0| 65 63 74 6f 72 31 2b 5b | 30 2c 30 2c 2d 37 2f 31 |ector1+[|0,0,-7/1|
|000007e0| 32 5d 20 56 65 63 74 6f | 72 31 2b 5b 30 2c 30 2c |2] Vecto|r1+[0,0,|
|000007f0| 2d 48 61 6e 64 48 67 68 | 74 5d 3b 0d 09 53 70 69 |-HandHgh|t];..Spi|
|00000800| 6e 64 6c 65 42 4f 4d 20 | 7b 3f 63 75 72 72 65 6e |ndleBOM |{?curren|
|00000810| 74 28 31 29 7d 20 7b 3f | 63 75 72 72 65 6e 74 28 |t(1)} {?|current(|
|00000820| 32 29 7d 20 36 20 31 3b | 0d 09 64 65 66 56 6f 6c |2)} 6 1;|..defVol|
|00000830| 53 70 69 6e 64 6c 65 73 | 20 34 20 63 79 61 6e 20 |Spindles| 4 cyan |
|00000840| 48 61 6e 64 52 20 35 2e | 35 2f 31 32 3b 0d 09 76 |HandR 5.|5/12;..v|
|00000850| 70 74 31 20 3d 20 25 31 | 2b 54 6f 70 3b 0d 09 76 |pt1 = %1|+Top;..v|
|00000860| 70 74 32 20 3d 20 56 65 | 63 74 6f 72 31 3b 0d 09 |pt2 = Ve|ctor1;..|
|00000870| 64 70 74 20 3d 20 76 70 | 74 31 2d 76 70 74 32 3b |dpt = vp|t1-vpt2;|
|00000880| 0d 09 76 70 74 31 20 3d | 20 56 65 63 74 6f 72 31 |..vpt1 =| Vector1|
|00000890| 2b 5b 30 2c 30 2c 2d 35 | 2f 31 32 5d 3b 0d 09 62 |+[0,0,-5|/12];..b|
|000008a0| 72 64 77 64 20 3d 20 76 | 70 74 32 2d 76 70 74 31 |rdwd = v|pt2-vpt1|
|000008b0| 3b 0d 09 48 61 6e 64 52 | 61 69 6c 42 4f 4d 20 7b |;..HandR|ailBOM {|
|000008c0| 3f 7e 64 70 74 7d 20 32 | 20 36 3b 0d 20 56 65 63 |?~dpt} 2| 6;. Vec|
|000008d0| 74 6f 72 32 20 3d 20 25 | 32 2b 54 6f 70 2b 5b 30 |tor2 = %|2+Top+[0|
|000008e0| 2c 30 2c 2d 45 6c 65 76 | 25 34 5d 2b 42 61 73 65 |,0,-Elev|%4]+Base|
|000008f0| 2b 44 69 72 2a 28 33 2f | 31 32 29 3b 0d 09 61 64 |+Dir*(3/|12);..ad|
|00000900| 64 43 75 72 50 74 20 25 | 32 2b 54 6f 70 20 56 65 |dCurPt %|2+Top Ve|
|00000910| 63 74 6f 72 32 20 56 65 | 63 74 6f 72 32 2b 5b 30 |ctor2 Ve|ctor2+[0|
|00000920| 2c 30 2c 2d 35 2f 31 32 | 5d 20 25 32 2b 54 6f 70 |,0,-5/12|] %2+Top|
|00000930| 2b 5b 30 2c 30 2c 2d 35 | 2f 31 32 5d 20 25 32 2b |+[0,0,-5|/12] %2+|
|00000940| 54 6f 70 2b 28 31 2e 35 | 2f 31 32 29 2a 44 69 72 |Top+(1.5|/12)*Dir|
|00000950| 32 3b 0d 09 64 65 66 56 | 6f 6c 45 78 74 72 75 73 |2;..defV|olExtrus|
|00000960| 69 6f 6e 20 37 20 72 65 | 64 20 48 61 6e 64 52 3b |ion 7 re|d HandR;|
|00000970| 0d 09 61 64 64 43 75 72 | 50 74 20 25 32 2b 54 6f |..addCur|Pt %2+To|
|00000980| 70 2b 5b 30 2c 30 2c 2d | 37 2f 31 32 5d 20 56 65 |p+[0,0,-|7/12] Ve|
|00000990| 63 74 6f 72 32 2b 5b 30 | 2c 30 2c 2d 37 2f 31 32 |ctor2+[0|,0,-7/12|
|000009a0| 5d 20 56 65 63 74 6f 72 | 32 2b 5b 30 2c 30 2c 2d |] Vector|2+[0,0,-|
|000009b0| 48 61 6e 64 48 67 68 74 | 5d 3b 0d 09 53 70 69 6e |HandHght|];..Spin|
|000009c0| 64 6c 65 42 4f 4d 20 7b | 3f 63 75 72 72 65 6e 74 |dleBOM {|?current|
|000009d0| 28 31 29 7d 20 7b 3f 63 | 75 72 72 65 6e 74 28 32 |(1)} {?c|urrent(2|
|000009e0| 29 7d 20 36 20 31 3b 0d | 09 64 65 66 56 6f 6c 53 |)} 6 1;.|.defVolS|
|000009f0| 70 69 6e 64 6c 65 73 20 | 34 20 63 79 61 6e 20 48 |pindles |4 cyan H|
|00000a00| 61 6e 64 52 20 35 2e 35 | 2f 31 32 3b 0d 09 76 70 |andR 5.5|/12;..vp|
|00000a10| 74 31 20 3d 20 25 32 2b | 54 6f 70 3b 0d 09 76 70 |t1 = %2+|Top;..vp|
|00000a20| 74 32 20 3d 20 25 32 2b | 54 6f 70 2b 5b 30 2c 30 |t2 = %2+|Top+[0,0|
|00000a30| 2c 2d 45 6c 65 76 25 34 | 5d 2b 42 61 73 65 2b 44 |,-Elev%4|]+Base+D|
|00000a40| 69 72 2a 28 33 2f 31 32 | 29 3b 0d 09 64 70 74 20 |ir*(3/12|);..dpt |
|00000a50| 3d 20 76 70 74 31 2d 76 | 70 74 32 3b 0d 09 76 70 |= vpt1-v|pt2;..vp|
|00000a60| 74 31 20 3d 20 56 65 63 | 74 6f 72 32 2b 5b 30 2c |t1 = Vec|tor2+[0,|
|00000a70| 30 2c 2d 35 2f 31 32 5d | 3b 0d 09 62 72 64 77 64 |0,-5/12]|;..brdwd|
|00000a80| 20 3d 20 76 70 74 32 2d | 76 70 74 31 3b 0d 09 48 | = vpt2-|vpt1;..H|
|00000a90| 61 6e 64 52 61 69 6c 42 | 4f 4d 20 7b 3f 7e 64 70 |andRailB|OM {?~dp|
|00000aa0| 74 7d 20 32 20 36 3b 0d | 20 69 66 20 28 53 74 65 |t} 2 6;.| if (Ste|
|00000ab0| 70 4f 66 25 34 20 3e 20 | 31 29 0d 09 20 28 42 61 |pOf%4 > |1).. (Ba|
|00000ac0| 73 65 20 3d 20 44 69 72 | 2a 7b 3f 28 53 74 65 70 |se = Dir|*{?(Step|
|00000ad0| 4f 66 25 34 2d 32 29 2a | 28 31 31 2f 31 32 29 2b |Of%4-2)*|(11/12)+|
|00000ae0| 31 38 2e 35 2f 31 32 7d | 2d 5b 30 2c 30 2c 31 2f |18.5/12}|-[0,0,1/|
|00000af0| 32 5d 29 0d 20 65 6c 73 | 65 20 28 42 61 73 65 20 |2]). els|e (Base |
|00000b00| 3d 20 44 69 72 2a 31 38 | 2e 35 2f 31 32 2d 5b 30 |= Dir*18|.5/12-[0|
|00000b10| 2c 30 2c 31 2f 32 5d 29 | 3b 0d 09 61 64 64 43 75 |,0,1/2])|;..addCu|
|00000b20| 72 50 74 20 25 31 2b 42 | 61 73 65 20 25 31 2b 42 |rPt %1+B|ase %1+B|
|00000b30| 61 73 65 2d 44 69 72 2a | 33 2e 35 2f 31 32 20 25 |ase-Dir*|3.5/12 %|
|00000b40| 31 2b 42 61 73 65 2b 44 | 69 72 32 2a 33 2e 35 2f |1+Base+D|ir2*3.5/|
|00000b50| 31 32 20 25 31 2b 42 61 | 73 65 2b 5b 30 2c 30 2c |12 %1+Ba|se+[0,0,|
|00000b60| 48 61 6e 64 48 67 68 74 | 2b 39 2f 31 32 5d 3b 0d |HandHght|+9/12];.|
|00000b70| 09 64 65 66 56 6f 6c 42 | 6f 78 20 34 20 63 79 61 |.defVolB|ox 4 cya|
|00000b80| 6e 20 48 61 6e 64 52 3b | 0d 09 76 70 74 32 20 3d |n HandR;|..vpt2 =|
|00000b90| 20 25 31 2b 42 61 73 65 | 2b 44 69 72 32 2a 33 2e | %1+Base|+Dir2*3.|
|00000ba0| 35 2f 31 32 3b 0d 09 76 | 70 74 31 20 3d 20 25 31 |5/12;..v|pt1 = %1|
|00000bb0| 2b 42 61 73 65 2b 5b 30 | 2c 30 2c 48 61 6e 64 48 |+Base+[0|,0,HandH|
|00000bc0| 67 68 74 2b 39 2f 31 32 | 5d 3b 0d 09 64 70 74 20 |ght+9/12|];..dpt |
|00000bd0| 3d 20 76 70 74 32 2d 76 | 70 74 31 3b 0d 09 50 6f |= vpt2-v|pt1;..Po|
|00000be0| 73 74 42 4f 4d 20 7b 3f | 48 61 6e 64 48 67 68 74 |stBOM {?|HandHght|
|00000bf0| 2b 39 2f 31 32 7d 20 66 | 61 6c 73 65 20 66 61 6c |+9/12} f|alse fal|
|00000c00| 73 65 3b 0d 20 48 52 42 | 4f 4d 20 31 3b 0d 09 61 |se;. HRB|OM 1;..a|
|00000c10| 64 64 43 75 72 50 74 20 | 25 32 2b 42 61 73 65 20 |ddCurPt |%2+Base |
|00000c20| 25 32 2b 42 61 73 65 2d | 44 69 72 2a 33 2e 35 2f |%2+Base-|Dir*3.5/|
|00000c30| 31 32 20 25 32 2b 42 61 | 73 65 2d 44 69 72 32 2a |12 %2+Ba|se-Dir2*|
|00000c40| 33 2e 35 2f 31 32 20 25 | 32 2b 42 61 73 65 2b 5b |3.5/12 %|2+Base+[|
|00000c50| 30 2c 30 2c 48 61 6e 64 | 48 67 68 74 2b 39 2f 31 |0,0,Hand|Hght+9/1|
|00000c60| 32 5d 3b 0d 09 64 65 66 | 56 6f 6c 42 6f 78 20 34 |2];..def|VolBox 4|
|00000c70| 20 63 79 61 6e 20 48 61 | 6e 64 52 3b 0d 09 76 70 | cyan Ha|ndR;..vp|
|00000c80| 74 31 20 3d 20 25 32 2b | 42 61 73 65 2d 44 69 72 |t1 = %2+|Base-Dir|
|00000c90| 32 2a 33 2e 35 2f 31 32 | 3b 0d 09 76 70 74 32 20 |2*3.5/12|;..vpt2 |
|00000ca0| 3d 20 25 32 2b 42 61 73 | 65 2b 5b 30 2c 30 2c 48 |= %2+Bas|e+[0,0,H|
|00000cb0| 61 6e 64 48 67 68 74 2b | 39 2f 31 32 5d 3b 0d 09 |andHght+|9/12];..|
|00000cc0| 64 70 74 20 3d 20 76 70 | 74 31 2d 76 70 74 32 3b |dpt = vp|t1-vpt2;|
|00000cd0| 0d 09 50 6f 73 74 42 4f | 4d 20 7b 3f 48 61 6e 64 |..PostBO|M {?Hand|
|00000ce0| 48 67 68 74 2b 39 2f 31 | 32 7d 20 66 61 6c 73 65 |Hght+9/1|2} false|
|00000cf0| 20 66 61 6c 73 65 3b 0d | 20 48 52 42 4f 4d 20 31 | false;.| HRBOM 1|
|00000d00| 3b 0d 09 00 00 40 00 0c | 44 72 61 77 4a 6f 69 73 |;....@..|DrawJois|
|00000d10| 74 73 32 00 03 7e 0d 20 | 6c 61 79 65 72 20 63 75 |ts2..~. |layer cu|
|00000d20| 72 72 65 6e 74 20 33 35 | 3b 0d 20 53 6f 72 74 50 |rrent 35|;. SortP|
|00000d30| 6f 73 74 53 74 61 63 6b | 73 3b 0d 20 63 6f 6e 64 |ostStack|s;. cond|
|00000d40| 20 0d 20 20 28 7b 63 6f | 75 6e 74 53 74 72 69 6e | . ({co|untStrin|
|00000d50| 67 20 24 70 6f 73 74 73 | 74 61 63 6b 78 7d 20 3e |g $posts|tackx} >|
|00000d60| 20 31 29 20 28 66 69 72 | 73 74 6a 73 70 61 6e 20 | 1) (fir|stjspan |
|00000d70| 3d 20 7b 69 6e 64 65 78 | 20 31 20 24 70 6f 73 74 |= {index| 1 $post|
|00000d80| 73 74 61 63 6b 78 7d 29 | 0d 20 20 74 72 75 65 20 |stackx})|. true |
|00000d90| 28 66 69 72 73 74 6a 73 | 70 61 6e 20 3d 20 7b 69 |(firstjs|pan = {i|
|00000da0| 6e 64 65 78 20 30 20 24 | 70 6f 73 74 73 74 61 63 |ndex 0 $|poststac|
|00000db0| 6b 78 7d 29 3b 0d 20 54 | 65 6d 70 31 20 3d 20 45 |kx});. T|emp1 = E|
|00000dc0| 6c 65 76 25 31 2d 50 6c | 61 6e 6b 54 68 2d 30 2e |lev%1-Pl|ankTh-0.|
|00000dd0| 30 32 3b 0d 20 4a 41 25 | 31 31 20 3d 20 69 6e 74 |02;. JA%|11 = int|
|00000de0| 28 28 4f 57 25 31 31 2d | 32 2a 52 42 29 2f 4a 53 |((OW%11-|2*RB)/JS|
|00000df0| 70 61 63 65 2d 31 29 3b | 0d 20 4a 41 25 31 32 20 |pace-1);|. JA%12 |
|00000e00| 3d 20 69 6e 74 28 28 4f | 57 25 31 32 2d 32 2a 52 |= int((O|W%12-2*R|
|00000e10| 42 29 2f 4a 53 70 61 63 | 65 2d 31 29 3b 0d 20 4a |B)/JSpac|e-1);. J|
|00000e20| 41 25 31 33 20 3d 20 69 | 6e 74 28 28 4f 57 25 31 |A%13 = i|nt((OW%1|
|00000e30| 33 2d 32 2a 52 42 29 2f | 4a 53 70 61 63 65 2d 31 |3-2*RB)/|JSpace-1|
|00000e40| 29 3b 0d 20 69 66 20 28 | 4a 41 25 31 32 20 3c 20 |);. if (|JA%12 < |
|00000e50| 4a 41 25 31 33 29 20 28 | 4d 61 78 57 25 31 20 3d |JA%13) (|MaxW%1 =|
|00000e60| 20 4f 57 25 31 33 2b 4f | 57 25 31 31 2d 32 2a 52 | OW%13+O|W%11-2*R|
|00000e70| 42 3b 4d 69 6e 57 25 31 | 20 3d 20 4f 57 25 31 32 |B;MinW%1| = OW%12|
|00000e80| 2b 4f 57 25 31 31 2d 32 | 2a 52 42 3b 73 65 74 20 |+OW%11-2|*RB;set |
|00000e90| 74 65 6d 70 20 3d 20 33 | 29 20 0d 20 65 6c 73 65 |temp = 3|) . else|
|00000ea0| 20 28 4d 61 78 57 25 31 | 20 3d 20 4f 57 25 31 32 | (MaxW%1| = OW%12|
|00000eb0| 2b 4f 57 25 31 31 2d 32 | 2a 52 42 3b 4d 69 6e 57 |+OW%11-2|*RB;MinW|
|00000ec0| 25 31 20 3d 20 4f 57 25 | 31 33 2b 4f 57 25 31 31 |%1 = OW%|13+OW%11|
|00000ed0| 2d 32 2a 52 42 3b 73 65 | 74 20 74 65 6d 70 20 3d |-2*RB;se|t temp =|
|00000ee0| 20 32 29 3b 0d 20 4a 41 | 25 31 20 3d 20 69 6e 74 | 2);. JA|%1 = int|
|00000ef0| 28 4d 61 78 57 25 31 2f | 4a 53 70 61 63 65 2d 31 |(MaxW%1/|JSpace-1|
|00000f00| 29 3b 0d 20 53 74 4f 66 | 66 25 31 20 3d 20 28 4d |);. StOf|f%1 = (M|
|00000f10| 61 78 57 25 31 2b 52 42 | 2d 28 4a 41 25 31 2a 4a |axW%1+RB|-(JA%1*J|
|00000f20| 53 70 61 63 65 29 29 2f | 32 3b 0d 66 6f 72 20 69 |Space))/|2;.for i|
|00000f30| 20 3d 20 30 20 74 6f 20 | 4a 41 25 31 20 28 0d 20 | = 0 to |JA%1 (. |
|00000f40| 63 6f 6e 64 20 28 69 2a | 4a 53 70 61 63 65 2b 53 |cond (i*|JSpace+S|
|00000f50| 74 4f 66 66 25 31 20 3e | 20 4d 69 6e 57 25 31 2b |tOff%1 >| MinW%1+|
|00000f60| 52 42 29 20 28 4a 6f 69 | 73 74 73 20 25 31 20 24 |RB) (Joi|sts %1 $|
|00000f70| 74 65 6d 70 29 0d 20 20 | 20 20 20 20 28 69 2a 4a |temp). | (i*J|
|00000f80| 53 70 61 63 65 2b 53 74 | 4f 66 66 25 31 20 3e 20 |Space+St|Off%1 > |
|00000f90| 4f 57 25 31 31 2d 52 42 | 29 20 28 4a 4c 31 20 3d |OW%11-RB|) (JL1 =|
|00000fa0| 20 4f 4c 25 31 31 2d 32 | 2a 52 42 3b 44 53 31 20 | OL%11-2|*RB;DS1 |
|00000fb0| 3d 20 4f 43 50 74 58 25 | 31 31 2b 52 42 3b 0d 20 |= OCPtX%|11+RB;. |
|00000fc0| 20 20 20 20 20 20 20 4a | 4c 32 20 3d 20 4f 4c 25 | J|L2 = OL%|
|00000fd0| 31 32 2d 32 2a 52 42 3b | 44 53 32 20 3d 20 4f 43 |12-2*RB;|DS2 = OC|
|00000fe0| 50 74 58 25 31 32 2b 52 | 42 3b 0d 20 20 20 20 20 |PtX%12+R|B;. |
|00000ff0| 20 20 20 4a 4c 33 20 3d | 20 4f 4c 25 31 33 2d 32 | JL3 =| OL%13-2|
|00001000| 2a 52 42 3b 44 53 33 20 | 3d 20 4f 43 50 74 58 25 |*RB;DS3 |= OCPtX%|
|00001010| 31 33 2b 52 42 3b 4a 6f | 69 73 74 73 20 25 31 20 |13+RB;Jo|ists %1 |
|00001020| 32 3b 4a 6f 69 73 74 73 | 20 25 31 20 33 29 0d 20 |2;Joists| %1 3). |
|00001030| 20 20 20 20 20 28 74 72 | 75 65 29 20 28 4a 4c 31 | (tr|ue) (JL1|
|00001040| 20 3d 20 4f 4c 25 31 31 | 2d 32 2a 52 42 3b 44 53 | = OL%11|-2*RB;DS|
|00001050| 31 20 3d 20 4f 43 50 74 | 58 25 31 31 2b 52 42 3b |1 = OCPt|X%11+RB;|
|00001060| 4a 6f 69 73 74 73 20 25 | 31 20 31 29 3b 0d 20 29 |Joists %|1 1);. )|
|00001070| 3b 0d 20 73 65 74 20 44 | 6f 75 62 4a 6f 69 73 74 |;. set D|oubJoist|
|00001080| 20 66 61 6c 73 65 3b 0d | 20 65 6e 64 43 75 72 4c | false;.| endCurL|
|00001090| 6e 3b 0d 00 00 40 00 09 | 41 64 64 4c 69 6e 65 53 |n;...@..|AddLineS|
|000010a0| 00 00 32 0d 20 69 66 20 | 28 4c 69 6e 65 46 6c 61 |..2. if |(LineFla|
|000010b0| 67 20 3d 3d 20 30 29 20 | 41 64 64 4c 69 6e 65 50 |g == 0) |AddLineP|
|000010c0| 74 53 0d 20 65 6c 73 65 | 20 41 64 64 4c 69 6e 65 |tS. else| AddLine|
|000010d0| 53 31 3b 0d 00 00 40 00 | 09 44 69 6d 44 65 63 6b |S1;...@.|.DimDeck|
|000010e0| 73 00 02 41 0d 20 70 72 | 65 63 69 73 69 6f 6e 20 |s..A. pr|ecision |
|000010f0| 34 3b 0d 09 63 6f 6e 64 | 0d 09 09 28 44 65 63 6b |4;..cond|...(Deck|
|00001100| 49 6e 63 20 3c 20 31 29 | 09 28 63 61 6e 63 65 6c |Inc < 1)|.(cancel|
|00001110| 29 0d 09 09 28 44 65 63 | 6b 49 6e 63 20 3c 20 32 |)...(Dec|kInc < 2|
|00001120| 29 09 28 64 77 67 53 63 | 61 6c 65 20 30 2e 31 36 |).(dwgSc|ale 0.16|
|00001130| 35 29 0d 09 09 28 44 65 | 63 6b 49 6e 63 20 3c 20 |5)...(De|ckInc < |
|00001140| 33 29 09 28 64 77 67 53 | 63 61 6c 65 20 30 2e 31 |3).(dwgS|cale 0.1|
|00001150| 34 35 29 0d 09 09 74 72 | 75 65 09 09 09 28 64 77 |45)...tr|ue...(dw|
|00001160| 67 53 63 61 6c 65 20 30 | 2e 31 32 35 29 3b 0d 09 |gScale 0|.125);..|
|00001170| 69 66 20 28 7b 64 75 6d | 70 54 79 70 65 20 31 33 |if ({dum|pType 13|
|00001180| 7d 20 22 3d 3d 20 28 29 | 29 20 28 0d 09 09 53 6f |} "== ()|) (...So|
|00001190| 72 74 44 69 6d 53 74 61 | 63 6b 73 3b 0d 09 09 73 |rtDimSta|cks;...s|
|000011a0| 63 6e 74 20 3d 20 7b 63 | 6f 75 6e 74 53 74 72 69 |cnt = {c|ountStri|
|000011b0| 6e 67 20 24 64 69 6d 73 | 74 61 63 6b 78 7d 2d 31 |ng $dims|tackx}-1|
|000011c0| 3b 0d 09 09 44 6f 44 65 | 63 6b 44 69 6d 73 58 20 |;...DoDe|ckDimsX |
|000011d0| 7b 3f 3a 64 20 73 63 6e | 74 7d 3b 0d 09 09 73 63 |{?:d scn|t};...sc|
|000011e0| 6e 74 20 3d 20 7b 63 6f | 75 6e 74 53 74 72 69 6e |nt = {co|untStrin|
|000011f0| 67 20 24 64 69 6d 73 74 | 61 63 6b 79 7d 2d 31 3b |g $dimst|acky}-1;|
|00001200| 0d 09 09 44 6f 44 65 63 | 6b 44 69 6d 73 59 20 7b |...DoDec|kDimsY {|
|00001210| 3f 3a 64 20 73 63 6e 74 | 7d 3b 0d 09 09 29 3b 0d |?:d scnt|};...);.|
|00001220| 09 69 66 20 28 7b 73 74 | 61 63 6b 20 70 6f 73 74 |.if ({st|ack post|
|00001230| 73 74 61 63 6b 20 64 65 | 70 74 68 7d 20 3e 20 30 |stack de|pth} > 0|
|00001240| 29 20 28 0d 09 09 53 6f | 72 74 50 6f 73 74 53 74 |) (...So|rtPostSt|
|00001250| 61 63 6b 73 3b 0d 09 09 | 73 63 6e 74 20 3d 20 7b |acks;...|scnt = {|
|00001260| 63 6f 75 6e 74 53 74 72 | 69 6e 67 20 24 70 6f 73 |countStr|ing $pos|
|00001270| 74 73 74 61 63 6b 78 7d | 2d 31 3b 0d 09 09 69 66 |tstackx}|-1;...if|
|00001280| 20 28 73 63 6e 74 20 3e | 20 30 29 20 28 0d 09 09 | (scnt >| 0) (...|
|00001290| 09 44 6f 44 65 63 6b 50 | 6f 73 74 44 69 6d 73 58 |.DoDeckP|ostDimsX|
|000012a0| 20 7b 3f 3a 64 20 73 63 | 6e 74 7d 3b 0d 09 09 09 | {?:d sc|nt};....|
|000012b0| 29 3b 0d 09 09 73 63 6e | 74 20 3d 20 7b 63 6f 75 |);...scn|t = {cou|
|000012c0| 6e 74 53 74 72 69 6e 67 | 20 24 70 6f 73 74 73 74 |ntString| $postst|
|000012d0| 61 63 6b 79 7d 2d 31 3b | 0d 09 09 69 66 20 28 73 |acky}-1;|...if (s|
|000012e0| 63 6e 74 20 3e 20 30 29 | 20 28 0d 09 09 09 44 6f |cnt > 0)| (....Do|
|000012f0| 44 65 63 6b 50 6f 73 74 | 44 69 6d 73 59 20 7b 3f |DeckPost|DimsY {?|
|00001300| 3a 64 20 73 63 6e 74 7d | 3b 0d 09 09 09 29 3b 0d |:d scnt}|;....);.|
|00001310| 09 09 29 3b 0d 20 70 72 | 65 63 69 73 69 6f 6e 20 |..);. pr|ecision |
|00001320| 30 3b 0d 09 00 00 40 00 | 0c 44 72 61 77 4a 6f 69 |0;....@.|.DrawJoi|
|00001330| 73 74 73 33 00 03 7d 0d | 20 6c 61 79 65 72 20 63 |sts3..}.| layer c|
|00001340| 75 72 72 65 6e 74 20 33 | 35 3b 0d 20 53 6f 72 74 |urrent 3|5;. Sort|
|00001350| 50 6f 73 74 53 74 61 63 | 6b 73 3b 0d 20 63 6f 6e |PostStac|ks;. con|
|00001360| 64 20 0d 20 20 28 7b 63 | 6f 75 6e 74 53 74 72 69 |d . ({c|ountStri|
|00001370| 6e 67 20 24 70 6f 73 74 | 73 74 61 63 6b 78 7d 20 |ng $post|stackx} |
|00001380| 3e 20 31 29 20 28 66 69 | 72 73 74 6a 73 70 61 6e |> 1) (fi|rstjspan|
|00001390| 20 3d 20 7b 69 6e 64 65 | 78 20 31 20 24 70 6f 73 | = {inde|x 1 $pos|
|000013a0| 74 73 74 61 63 6b 78 7d | 29 0d 20 20 74 72 75 65 |tstackx}|). true|
|000013b0| 20 28 66 69 72 73 74 6a | 73 70 61 6e 20 3d 20 7b | (firstj|span = {|
|000013c0| 69 6e 64 65 78 20 30 20 | 24 70 6f 73 74 73 74 61 |index 0 |$poststa|
|000013d0| 63 6b 78 7d 29 3b 0d 20 | 54 65 6d 70 31 20 3d 20 |ckx});. |Temp1 = |
|000013e0| 45 6c 65 76 25 31 2d 50 | 6c 61 6e 6b 54 68 2d 30 |Elev%1-P|lankTh-0|
|000013f0| 2e 30 32 3b 0d 20 4a 41 | 25 31 31 20 3d 20 69 6e |.02;. JA|%11 = in|
|00001400| 74 28 28 4f 57 25 31 31 | 2d 32 2a 52 42 29 2f 4a |t((OW%11|-2*RB)/J|
|00001410| 53 70 61 63 65 2d 31 29 | 3b 0d 20 4a 41 25 31 32 |Space-1)|;. JA%12|
|00001420| 20 3d 20 69 6e 74 28 28 | 4f 57 25 31 32 2d 32 2a | = int((|OW%12-2*|
|00001430| 52 42 29 2f 4a 53 70 61 | 63 65 2d 31 29 3b 0d 20 |RB)/JSpa|ce-1);. |
|00001440| 4a 41 25 31 33 20 3d 20 | 69 6e 74 28 28 4f 57 25 |JA%13 = |int((OW%|
|00001450| 31 33 2d 32 2a 52 42 29 | 2f 4a 53 70 61 63 65 2d |13-2*RB)|/JSpace-|
|00001460| 31 29 3b 0d 20 69 66 20 | 28 4a 41 25 31 31 20 3c |1);. if |(JA%11 <|
|00001470| 20 4a 41 25 31 32 29 20 | 28 4d 61 78 57 25 31 20 | JA%12) |(MaxW%1 |
|00001480| 3d 20 4f 57 25 31 33 2b | 4f 57 25 31 32 2d 32 2a |= OW%13+|OW%12-2*|
|00001490| 52 42 3b 4d 69 6e 57 25 | 31 20 3d 20 4f 57 25 31 |RB;MinW%|1 = OW%1|
|000014a0| 33 2b 4f 57 25 31 31 2d | 32 2a 52 42 3b 73 65 74 |3+OW%11-|2*RB;set|
|000014b0| 20 74 65 6d 70 20 3d 20 | 32 29 20 0d 20 65 6c 73 | temp = |2) . els|
|000014c0| 65 20 28 4d 61 78 57 25 | 31 20 3d 20 4f 57 25 31 |e (MaxW%|1 = OW%1|
|000014d0| 33 2b 4f 57 25 31 31 2d | 32 2a 52 42 3b 4d 69 6e |3+OW%11-|2*RB;Min|
|000014e0| 57 25 31 20 3d 20 4f 57 | 25 31 33 2b 4f 57 25 31 |W%1 = OW|%13+OW%1|
|000014f0| 32 2d 32 2a 52 42 3b 73 | 65 74 20 74 65 6d 70 20 |2-2*RB;s|et temp |
|00001500| 3d 20 31 29 3b 0d 20 4a | 41 25 31 20 3d 20 69 6e |= 1);. J|A%1 = in|
|00001510| 74 28 4d 61 78 57 25 31 | 2f 4a 53 70 61 63 65 2d |t(MaxW%1|/JSpace-|
|00001520| 31 29 3b 0d 20 53 74 4f | 66 66 25 31 20 3d 20 28 |1);. StO|ff%1 = (|
|00001530| 4d 61 78 57 25 31 2d 28 | 4a 41 25 31 2a 4a 53 70 |MaxW%1-(|JA%1*JSp|
|00001540| 61 63 65 29 29 2f 32 3b | 0d 66 6f 72 20 69 20 3d |ace))/2;|.for i =|
|00001550| 20 30 20 74 6f 20 4a 41 | 25 31 20 28 0d 20 63 6f | 0 to JA|%1 (. co|
|00001560| 6e 64 20 28 69 2a 4a 53 | 70 61 63 65 2b 53 74 4f |nd (i*JS|pace+StO|
|00001570| 66 66 25 31 20 3e 20 4d | 61 78 57 25 31 2d 4f 57 |ff%1 > M|axW%1-OW|
|00001580| 25 31 33 2b 52 42 29 20 | 28 4a 4c 33 20 3d 20 4f |%13+RB) |(JL3 = O|
|00001590| 4c 25 31 33 2d 32 2a 52 | 42 3b 44 53 33 20 3d 20 |L%13-2*R|B;DS3 = |
|000015a0| 4f 43 50 74 58 25 31 33 | 2b 52 42 3b 4a 6f 69 73 |OCPtX%13|+RB;Jois|
|000015b0| 74 73 20 25 31 20 33 29 | 0d 20 20 20 20 20 20 28 |ts %1 3)|. (|
|000015c0| 69 2a 4a 53 70 61 63 65 | 2b 53 74 4f 66 66 25 31 |i*JSpace|+StOff%1|
|000015d0| 20 3e 20 4d 61 78 57 25 | 31 2d 4d 69 6e 57 25 31 | > MaxW%|1-MinW%1|
|000015e0| 2b 52 42 29 20 28 4a 4c | 31 20 3d 20 4f 4c 25 31 |+RB) (JL|1 = OL%1|
|000015f0| 31 2d 32 2a 52 42 3b 44 | 53 31 20 3d 20 4f 43 50 |1-2*RB;D|S1 = OCP|
|00001600| 74 58 25 31 31 2b 52 42 | 3b 0d 20 20 20 20 20 20 |tX%11+RB|;. |
|00001610| 4a 4c 32 20 3d 20 4f 4c | 25 31 32 2d 32 2a 52 42 |JL2 = OL|%12-2*RB|
|00001620| 3b 44 53 32 20 3d 20 4f | 43 50 74 58 25 31 32 2b |;DS2 = O|CPtX%12+|
|00001630| 52 42 3b 4a 6f 69 73 74 | 73 20 25 31 20 31 3b 4a |RB;Joist|s %1 1;J|
|00001640| 6f 69 73 74 73 20 25 31 | 20 32 29 0d 20 20 20 20 |oists %1| 2). |
|00001650| 20 20 74 72 75 65 20 28 | 4a 4c 31 20 3d 20 4f 4c | true (|JL1 = OL|
|00001660| 25 31 31 2d 32 2a 52 42 | 3b 44 53 31 20 3d 20 4f |%11-2*RB|;DS1 = O|
|00001670| 43 50 74 58 25 31 31 2b | 52 42 3b 4a 6f 69 73 74 |CPtX%11+|RB;Joist|
|00001680| 73 20 25 31 20 24 74 65 | 6d 70 29 3b 0d 20 29 3b |s %1 $te|mp);. );|
|00001690| 0d 20 73 65 74 20 44 6f | 75 62 4a 6f 69 73 74 32 |. set Do|ubJoist2|
|000016a0| 20 66 61 6c 73 65 3b 0d | 20 65 6e 64 43 75 72 4c | false;.| endCurL|
|000016b0| 6e 3b 0d 00 00 40 00 0f | 43 61 6c 63 53 74 61 69 |n;...@..|CalcStai|
|000016c0| 72 50 72 69 63 65 00 01 | a8 0d 09 73 74 61 69 72 |rPrice..|...stair|
|000016d0| 63 6e 74 20 3d 20 7b 3f | 3a 64 20 69 6e 74 28 74 |cnt = {?|:d int(t|
|000016e0| 6f 74 61 6c 73 74 61 69 | 72 6c 65 6e 2f 73 74 64 |otalstai|rlen/std|
|000016f0| 73 74 61 69 72 6c 65 6e | 29 7d 3b 0d 09 69 66 20 |stairlen|)};..if |
|00001700| 28 7b 3f 20 74 6f 74 61 | 6c 73 74 61 69 72 6c 65 |({? tota|lstairle|
|00001710| 6e 20 25 25 20 73 74 64 | 73 74 61 69 72 6c 65 6e |n %% std|stairlen|
|00001720| 7d 20 3e 20 30 29 20 28 | 73 74 61 69 72 63 6e 74 |} > 0) (|staircnt|
|00001730| 20 3d 20 73 74 61 69 72 | 63 6e 74 2b 31 29 3b 0d | = stair|cnt+1);.|
|00001740| 09 73 65 74 20 74 65 6d | 70 20 7b 46 69 6e 64 49 |.set tem|p {FindI|
|00001750| 6e 76 44 65 73 63 20 62 | 6f 78 20 24 73 74 61 69 |nvDesc b|ox $stai|
|00001760| 72 6d 65 6d 73 69 7a 65 | 28 20 29 7b 3f 3a 64 20 |rmemsize|( ){?:d |
|00001770| 73 74 64 73 74 61 69 72 | 6c 65 6e 7d 7d 3b 0d 09 |stdstair|len}};..|
|00001780| 73 65 74 20 69 6e 76 70 | 72 69 63 65 20 3d 20 7b |set invp|rice = {|
|00001790| 46 69 6e 64 49 6e 76 50 | 72 69 63 65 20 62 6f 78 |FindInvP|rice box|
|000017a0| 20 24 73 74 61 69 72 6d | 65 6d 73 69 7a 65 28 20 | $stairm|emsize( |
|000017b0| 29 7b 3f 3a 64 20 73 74 | 64 73 74 61 69 72 6c 65 |){?:d st|dstairle|
|000017c0| 6e 7d 28 20 29 24 74 65 | 6d 70 7d 3b 0d 09 69 66 |n}( )$te|mp};..if|
|000017d0| 20 24 75 73 65 6c 69 6e | 65 61 6c 70 72 69 63 65 | $uselin|ealprice|
|000017e0| 20 28 0d 09 09 74 6f 74 | 61 6c 69 6e 76 70 72 69 | (...tot|alinvpri|
|000017f0| 63 65 20 3d 20 7b 3f 20 | 69 6e 76 70 72 69 63 65 |ce = {? |invprice|
|00001800| 20 2a 20 74 6f 74 61 6c | 73 74 61 69 72 6c 65 6e | * total|stairlen|
|00001810| 20 2b 20 74 6f 74 61 6c | 69 6e 76 70 72 69 63 65 | + total|invprice|
|00001820| 7d 3b 0d 09 09 29 0d 09 | 65 6c 73 65 20 28 0d 09 |};...)..|else (..|
|00001830| 09 74 6f 74 61 6c 69 6e | 76 70 72 69 63 65 20 3d |.totalin|vprice =|
|00001840| 20 7b 3f 20 69 6e 76 70 | 72 69 63 65 20 2a 20 73 | {? invp|rice * s|
|00001850| 74 61 69 72 63 6e 74 20 | 2b 20 74 6f 74 61 6c 69 |taircnt |+ totali|
|00001860| 6e 76 70 72 69 63 65 7d | 3b 0d 09 09 29 3b 0d 09 |nvprice}|;...);..|
|00001870| 00 00 40 00 09 52 65 63 | 74 44 65 63 6b 00 00 4c |..@..Rec|tDeck..L|
|00001880| 0d 20 46 69 72 73 74 52 | 65 63 74 20 25 31 3b 0d |. FirstR|ect %1;.|
|00001890| 20 54 65 6d 70 31 20 3d | 20 45 6c 65 76 31 2d 50 | Temp1 =| Elev1-P|
|000018a0| 6c 61 6e 6b 54 68 3b 0d | 20 44 72 61 77 52 65 63 |lankTh;.| DrawRec|
|000018b0| 74 20 25 31 20 31 3b 0d | 20 44 72 61 77 4a 6f 69 |t %1 1;.| DrawJoi|
|000018c0| 73 74 73 31 20 25 31 20 | 31 3b 0d 00 00 40 00 0c |sts1 %1 |1;...@..|
|000018d0| 54 6f 67 67 6c 65 43 68 | 65 63 6b 00 00 2e 64 69 |ToggleCh|eck...di|
|000018e0| 61 6c 6f 67 20 63 68 61 | 6e 67 65 20 25 31 20 7b |alog cha|nge %1 {|
|000018f0| 64 69 61 6c 6f 67 20 73 | 74 61 74 65 20 25 31 7d |dialog s|tate %1}|
|00001900| 5e 64 6c 67 43 52 4f 53 | 53 45 44 00 00 40 00 0c |^dlgCROS|SED..@..|
|00001910| 44 6f 48 6f 6c 64 43 6c | 69 63 6b 00 02 18 0d 20 |DoHoldCl|ick.... |
|00001920| 73 65 74 20 74 65 6d 70 | 20 7b 77 6f 72 6c 64 54 |set temp| {worldT|
|00001930| 6f 53 63 72 20 63 75 72 | 73 6f 72 20 36 7d 3b 0d |oScr cur|sor 6};.|
|00001940| 20 69 66 20 7b 50 61 73 | 73 20 70 74 49 6e 52 67 | if {Pas|s ptInRg|
|00001950| 6e 20 24 74 65 6d 70 20 | 48 57 61 6c 6c 7d 20 28 |n $temp |HWall} (|
|00001960| 44 72 61 67 44 6f 6f 72 | 3b 0d 20 29 20 65 6c 73 |DragDoor|;. ) els|
|00001970| 65 20 28 20 0d 20 20 63 | 6f 6e 64 0d 20 20 20 7b |e ( . c|ond. {|
|00001980| 50 61 73 73 20 70 74 49 | 6e 52 67 6e 20 24 74 65 |Pass ptI|nRgn $te|
|00001990| 6d 70 20 44 65 63 6b 31 | 7d 20 28 73 65 74 20 4e |mp Deck1|} (set N|
|000019a0| 65 77 44 65 63 6b 4e 75 | 6d 20 31 29 20 0d 20 20 |ewDeckNu|m 1) . |
|000019b0| 20 7b 50 61 73 73 20 70 | 74 49 6e 52 67 6e 20 24 | {Pass p|tInRgn $|
|000019c0| 74 65 6d 70 20 44 65 63 | 6b 32 7d 20 28 73 65 74 |temp Dec|k2} (set|
|000019d0| 20 4e 65 77 44 65 63 6b | 4e 75 6d 20 32 29 20 0d | NewDeck|Num 2) .|
|000019e0| 20 20 20 7b 50 61 73 73 | 20 70 74 49 6e 52 67 6e | {Pass| ptInRgn|
|000019f0| 20 24 74 65 6d 70 20 44 | 65 63 6b 33 7d 20 28 73 | $temp D|eck3} (s|
|00001a00| 65 74 20 4e 65 77 44 65 | 63 6b 4e 75 6d 20 33 29 |et NewDe|ckNum 3)|
|00001a10| 0d 20 20 20 74 72 75 65 | 20 28 73 79 73 42 65 65 |. true| (sysBee|
|00001a20| 70 3b 73 65 74 20 4e 65 | 77 44 65 63 6b 4e 75 6d |p;set Ne|wDeckNum|
|00001a30| 20 30 3b 62 72 65 61 6b | 29 3b 0d 20 20 70 72 65 | 0;break|);. pre|
|00001a40| 63 69 73 69 6f 6e 20 30 | 3b 0d 20 20 58 4d 20 3d |cision 0|;. XM =|
|00001a50| 20 7b 69 6e 64 65 78 20 | 30 20 7b 67 65 74 4d 6f | {index |0 {getMo|
|00001a60| 75 73 65 7d 7d 3b 0d 20 | 20 59 4d 20 3d 20 7b 69 |use}};. | YM = {i|
|00001a70| 6e 64 65 78 20 31 20 7b | 67 65 74 4d 6f 75 73 65 |ndex 1 {|getMouse|
|00001a80| 7d 7d 3b 0d 20 20 69 66 | 20 7b 69 73 54 68 65 72 |}};. if| {isTher|
|00001a90| 65 20 77 69 6e 64 6f 77 | 20 45 6c 65 76 7d 20 28 |e window| Elev} (|
|00001aa0| 6b 69 6c 6c 57 69 6e 64 | 6f 77 20 45 6c 65 76 29 |killWind|ow Elev)|
|00001ab0| 3b 0d 20 20 69 66 20 28 | 59 4d 20 3e 3d 20 33 33 |;. if (|YM >= 33|
|00001ac0| 35 29 20 28 55 70 45 6c | 65 76 20 24 4e 65 77 44 |5) (UpEl|ev $NewD|
|00001ad0| 65 63 6b 4e 75 6d 29 20 | 65 6c 73 65 20 28 4c 6f |eckNum) |else (Lo|
|00001ae0| 77 45 6c 65 76 20 24 4e | 65 77 44 65 63 6b 4e 75 |wElev $N|ewDeckNu|
|00001af0| 6d 29 3b 0d 20 20 69 66 | 20 7b 69 73 54 68 65 72 |m);. if| {isTher|
|00001b00| 65 20 77 69 6e 64 6f 77 | 20 45 6c 65 76 7d 20 28 |e window| Elev} (|
|00001b10| 6b 69 6c 6c 57 69 6e 64 | 6f 77 20 45 6c 65 76 29 |killWind|ow Elev)|
|00001b20| 3b 0d 20 20 70 72 65 63 | 69 73 69 6f 6e 20 34 3b |;. prec|ision 4;|
|00001b30| 0d 20 29 3b 0d 00 00 40 | 00 0c 48 61 6e 64 52 61 |. );...@|..HandRa|
|00001b40| 69 6c 42 4f 4d 00 00 73 | 0d 09 6c 6f 63 61 6c 56 |ilBOM..s|..localV|
|00001b50| 61 72 20 73 63 61 6c 61 | 72 20 6d 65 6d 73 7a 3b |ar scala|r memsz;|
|00001b60| 0d 09 6d 65 6d 73 7a 20 | 3d 20 7b 3f 3a 78 20 25 |..memsz |= {?:x %|
|00001b70| 33 7d 3b 0d 09 6d 65 6d | 73 7a 20 3d 20 7b 3f 3f |3};..mem|sz = {??|
|00001b80| 20 6d 65 6d 73 7a 20 7c | 20 28 25 32 20 3c 3c 20 | memsz || (%2 << |
|00001b90| 38 29 7d 3b 0d 09 69 6e | 70 75 74 42 6f 6d 20 62 |8)};..in|putBom b|
|00001ba0| 6f 78 20 72 61 69 6c 42 | 4f 4d 74 79 70 65 20 6d |ox railB|OMtype m|
|00001bb0| 65 6d 73 7a 20 25 31 3b | 0d 09 00 00 40 00 09 48 |emsz %1;|....@..H|
|00001bc0| 61 6e 64 44 72 61 77 00 | 01 71 0d 20 70 72 65 63 |andDraw.|.q. prec|
|00001bd0| 69 73 69 6f 6e 20 30 3b | 0d 20 6d 65 73 67 20 7b |ision 0;|. mesg {|
|00001be0| 3f 46 69 72 73 74 54 79 | 70 65 7d 7b 3f 53 65 63 |?FirstTy|pe}{?Sec|
|00001bf0| 54 79 70 65 7d 28 20 29 | 3b 0d 20 69 66 20 28 44 |Type}( )|;. if (D|
|00001c00| 65 63 6b 49 6e 63 20 3d | 3d 20 31 29 20 28 0d 20 |eckInc =|= 1) (. |
|00001c10| 6d 61 74 63 68 20 7b 3f | 46 69 72 73 74 54 79 70 |match {?|FirstTyp|
|00001c20| 65 7d 7b 3f 53 65 63 54 | 79 70 65 7d 0d 20 20 30 |e}{?SecT|ype}. 0|
|00001c30| 36 20 28 44 72 61 77 48 | 61 6e 64 20 25 32 20 25 |6 (DrawH|and %2 %|
|00001c40| 33 20 25 34 20 31 20 35 | 36 29 0d 20 20 30 35 20 |3 %4 1 5|6). 05 |
|00001c50| 28 44 72 61 77 48 61 6e | 64 20 25 32 20 25 33 20 |(DrawHan|d %2 %3 |
|00001c60| 25 34 20 31 20 35 35 29 | 0d 20 20 35 36 20 28 44 |%4 1 55)|. 56 (D|
|00001c70| 72 61 77 48 61 6e 64 20 | 25 32 20 25 33 20 25 34 |rawHand |%2 %3 %4|
|00001c80| 20 31 20 35 36 29 0d 20 | 20 35 35 20 28 69 66 20 | 1 56). | 55 (if |
|00001c90| 28 53 74 61 69 72 42 65 | 74 46 6c 61 67 20 3d 3d |(StairBe|tFlag ==|
|00001ca0| 20 30 29 20 28 53 74 61 | 69 72 42 65 74 46 6c 61 | 0) (Sta|irBetFla|
|00001cb0| 67 20 3d 20 31 3b 0d 20 | 20 20 20 20 20 29 20 65 |g = 1;. | ) e|
|00001cc0| 6c 73 65 20 28 53 74 61 | 69 72 42 65 74 46 6c 61 |lse (Sta|irBetFla|
|00001cd0| 67 20 3d 20 30 3b 0d 20 | 20 20 20 20 20 20 44 72 |g = 0;. | Dr|
|00001ce0| 61 77 48 61 6e 64 20 25 | 32 20 25 33 20 25 34 20 |awHand %|2 %3 %4 |
|00001cf0| 25 31 20 35 35 29 3b 0d | 20 20 20 20 20 29 3b 0d |%1 55);.| );.|
|00001d00| 20 29 3b 0d 20 48 61 6e | 64 44 72 61 77 31 31 20 | );. Han|dDraw11 |
|00001d10| 25 31 20 25 32 20 25 33 | 20 25 34 20 25 35 20 25 |%1 %2 %3| %4 %5 %|
|00001d20| 36 20 7b 3f 46 69 72 73 | 74 54 79 70 65 7d 7b 3f |6 {?Firs|tType}{?|
|00001d30| 53 65 63 54 79 70 65 7d | 3b 0d 00 00 40 00 09 44 |SecType}|;...@..D|
|00001d40| 72 61 77 48 61 6e 64 00 | 02 66 0d 20 69 66 20 28 |rawHand.|.f. if (|
|00001d50| 64 65 63 6b 49 6e 63 20 | 3d 3d 20 31 29 20 28 77 |deckInc |== 1) (w|
|00001d60| 61 6c 6c 65 20 3d 20 45 | 6c 65 76 25 34 3b 77 61 |alle = E|lev%4;wa|
|00001d70| 6c 6c 79 31 20 3d 20 33 | 30 3b 77 61 6c 6c 79 32 |lly1 = 3|0;wally2|
|00001d80| 20 3d 20 30 20 29 3b 0d | 20 69 66 20 28 7b 3f 7e | = 0 );.| if ({?~|
|00001d90| 28 25 31 2d 25 32 29 7d | 20 3c 20 31 29 20 28 29 |(%1-%2)}| < 1) ()|
|00001da0| 20 65 6c 73 65 20 28 0d | 20 20 69 66 20 28 b0 78 | else (.| if (.x|
|00001db0| 28 28 25 31 29 29 20 3e | 20 30 29 20 28 0d 20 20 |((%1)) >| 0) (. |
|00001dc0| 20 73 65 74 20 57 61 6c | 6c 4f 6e 20 66 61 6c 73 | set Wal|lOn fals|
|00001dd0| 65 3b 0d 20 20 20 44 72 | 61 77 48 61 6e 64 32 20 |e;. Dr|awHand2 |
|00001de0| 25 31 20 25 32 20 25 33 | 20 25 34 20 25 35 3b 0d |%1 %2 %3| %4 %5;.|
|00001df0| 20 20 29 20 65 6c 73 65 | 20 28 0d 20 20 20 69 66 | ) else| (. if|
|00001e00| 20 28 b0 78 28 28 25 32 | 29 29 20 3e 20 30 29 20 | (.x((%2|)) > 0) |
|00001e10| 28 0d 20 20 20 20 73 65 | 74 20 57 61 6c 6c 4f 6e |(. se|t WallOn|
|00001e20| 20 66 61 6c 73 65 3b 0d | 20 20 20 20 44 72 61 77 | false;.| Draw|
|00001e30| 48 61 6e 64 32 20 25 31 | 20 25 32 20 25 33 20 25 |Hand2 %1| %2 %3 %|
|00001e40| 34 20 25 35 3b 0d 20 20 | 20 29 20 65 6c 73 65 20 |4 %5;. | ) else |
|00001e50| 28 0d 20 20 20 20 73 65 | 74 20 57 61 6c 6c 4f 6e |(. se|t WallOn|
|00001e60| 20 74 72 75 65 3b 0d 20 | 20 20 09 69 66 20 28 77 | true;. | .if (w|
|00001e70| 61 6c 6c 65 20 3c 20 31 | 29 20 28 77 61 6c 6c 65 |alle < 1|) (walle|
|00001e80| 20 3d 20 45 6c 65 76 25 | 34 29 3b 0d 20 20 20 09 | = Elev%|4);. .|
|00001e90| 69 66 20 28 b0 79 28 28 | 25 31 29 29 20 3c 20 b0 |if (.y((|%1)) < .|
|00001ea0| 79 28 28 25 32 29 29 29 | 20 28 0d 20 20 20 09 09 |y((%2)))| (. ..|
|00001eb0| 69 66 20 28 b0 79 28 28 | 25 31 29 29 20 3c 20 77 |if (.y((|%1)) < w|
|00001ec0| 61 6c 6c 79 31 29 20 28 | 0d 20 20 09 20 09 09 77 |ally1) (|. . ..w|
|00001ed0| 61 6c 6c 79 31 20 3d 20 | b0 79 28 28 25 31 29 29 |ally1 = |.y((%1))|
|00001ee0| 3b 0d 20 20 20 09 09 09 | 29 3b 0d 20 20 20 09 09 |;. ...|);. ..|
|00001ef0| 69 66 20 28 b0 79 28 28 | 25 32 29 29 20 3e 20 77 |if (.y((|%2)) > w|
|00001f00| 61 6c 6c 79 32 29 20 28 | 77 61 6c 6c 79 32 20 3d |ally2) (|wally2 =|
|00001f10| 20 b0 79 28 28 25 32 29 | 29 29 3b 0d 20 20 20 09 | .y((%2)|));. .|
|00001f20| 29 0d 20 20 09 65 6c 73 | 65 20 28 0d 20 20 09 09 |). .els|e (. ..|
|00001f30| 69 66 20 28 b0 79 28 28 | 25 32 29 29 20 3c 20 77 |if (.y((|%2)) < w|
|00001f40| 61 6c 6c 79 31 29 20 28 | 0d 20 20 09 09 09 77 61 |ally1) (|. ...wa|
|00001f50| 6c 6c 79 31 20 3d 20 b0 | 79 28 28 25 32 29 29 3b |lly1 = .|y((%2));|
|00001f60| 0d 20 20 09 09 09 29 3b | 0d 20 20 09 09 69 66 20 |. ...);|. ..if |
|00001f70| 28 b0 79 28 28 25 31 29 | 29 20 3e 20 77 61 6c 6c |(.y((%1)|) > wall|
|00001f80| 79 32 29 20 28 77 61 6c | 6c 79 32 20 3d 20 b0 79 |y2) (wal|ly2 = .y|
|00001f90| 28 28 25 31 29 29 29 3b | 0d 09 20 20 09 29 3b 0d |((%1)));|.. .);.|
|00001fa0| 20 20 09 29 3b 0d 20 20 | 29 3b 0d 20 29 3b 0d 00 | .);. |);. );..|
|00001fb0| 00 40 00 09 54 65 73 74 | 4f 75 74 32 00 00 35 0d |.@..Test|Out2..5.|
|00001fc0| 20 66 6f 72 20 69 20 3d | 20 31 20 74 6f 20 53 74 | for i =| 1 to St|
|00001fd0| 61 69 72 50 74 25 31 20 | 28 0d 20 20 54 65 73 74 |airPt%1 |(. Test|
|00001fe0| 4f 75 74 20 7b 3f 6a 7d | 20 7b 3f 69 7d 3b 0d 20 |Out {?j}| {?i};. |
|00001ff0| 29 3b 0d 00 00 40 00 0f | 44 6f 53 6d 61 6c 6c 42 |);...@..|DoSmallB|
|00002000| 6f 78 44 61 74 61 00 01 | 74 0d 09 6c 6f 63 61 6c |oxData..|t..local|
|00002010| 56 61 72 20 73 63 61 6c | 61 72 20 70 63 6e 74 20 |Var scal|ar pcnt |
|00002020| 70 6c 65 6e 3b 0d 09 69 | 66 20 24 66 69 72 73 74 |plen;..i|f $first|
|00002030| 25 31 20 28 0d 09 09 73 | 65 74 20 66 69 72 73 74 |%1 (...s|et first|
|00002040| 25 31 20 66 61 6c 73 65 | 3b 0d 09 09 73 65 74 20 |%1 false|;...set |
|00002050| 75 73 65 69 6e 76 25 31 | 6e 75 6d 20 3d 20 72 6f |useinv%1|num = ro|
|00002060| 77 6e 75 6d 3b 0d 09 09 | 70 63 6e 74 20 3d 20 7b |wnum;...|pcnt = {|
|00002070| 69 6e 64 65 78 20 31 20 | 24 64 61 74 61 62 61 73 |index 1 |$databas|
|00002080| 65 6c 69 6e 65 7d 3b 0d | 09 09 70 6c 65 6e 20 3d |eline};.|..plen =|
|00002090| 20 7b 69 6e 64 65 78 20 | 32 20 24 64 61 74 61 62 | {index |2 $datab|
|000020a0| 61 73 65 6c 69 6e 65 7d | 3b 0d 09 09 74 6f 74 61 |aseline}|;...tota|
|000020b0| 6c 25 31 6c 65 6e 20 3d | 20 70 63 6e 74 2a 70 6c |l%1len =| pcnt*pl|
|000020c0| 65 6e 3b 0d 09 09 29 0d | 09 65 6c 73 65 20 28 0d |en;...).|.else (.|
|000020d0| 09 09 70 63 6e 74 20 3d | 20 7b 69 6e 64 65 78 20 |..pcnt =| {index |
|000020e0| 31 20 24 64 61 74 61 62 | 61 73 65 6c 69 6e 65 7d |1 $datab|aseline}|
|000020f0| 3b 0d 09 09 70 6c 65 6e | 20 3d 20 7b 69 6e 64 65 |;...plen| = {inde|
|00002100| 78 20 32 20 24 64 61 74 | 61 62 61 73 65 6c 69 6e |x 2 $dat|abaselin|
|00002110| 65 7d 3b 0d 09 09 74 6f | 74 61 6c 25 31 6c 65 6e |e};...to|tal%1len|
|00002120| 20 3d 20 70 63 6e 74 2a | 70 6c 65 6e 2b 74 6f 74 | = pcnt*|plen+tot|
|00002130| 61 6c 25 31 6c 65 6e 3b | 0d 09 09 72 6f 77 6e 75 |al%1len;|...rownu|
|00002140| 6d 20 3d 20 72 6f 77 6e | 75 6d 2d 31 3b 0d 09 09 |m = rown|um-1;...|
|00002150| 29 3b 0d 09 73 65 74 20 | 25 31 6d 65 6d 73 69 7a |);..set |%1memsiz|
|00002160| 65 20 7b 69 6e 64 65 78 | 20 33 20 24 64 61 74 61 |e {index| 3 $data|
|00002170| 62 61 73 65 6c 69 6e 65 | 7d 3b 0d 09 00 00 40 00 |baseline|};....@.|
|00002180| 06 50 61 6e 55 70 00 00 | d0 0d 20 69 66 20 28 52 |.PanUp..|.. if (R|
|00002190| 65 6e 64 20 3d 3d 20 74 | 72 75 65 29 20 28 0d 20 |end == t|rue) (. |
|000021a0| 52 65 6e 64 59 20 3d 20 | 52 65 6e 64 59 2b 32 3b |RendY = |RendY+2;|
|000021b0| 0d 20 72 65 6e 64 43 74 | 72 20 52 65 6e 64 58 20 |. rendCt|r RendX |
|000021c0| 52 65 6e 64 59 3b 0d 20 | 72 65 6e 64 44 72 61 77 |RendY;. |rendDraw|
|000021d0| 20 2d 73 3b 0d 20 69 66 | 20 28 7b 69 73 54 68 65 | -s;. if| ({isThe|
|000021e0| 72 65 20 73 74 72 69 6e | 67 20 44 45 43 4b 50 52 |re strin|g DECKPR|
|000021f0| 49 43 45 7d 20 3d 3d 20 | 66 61 6c 73 65 29 20 28 |ICE} == |false) (|
|00002200| 29 20 65 6c 73 65 20 53 | 65 74 50 72 69 63 65 3b |) else S|etPrice;|
|00002210| 0d 20 29 20 65 6c 73 65 | 20 28 0d 20 20 63 65 6e |. ) else| (. cen|
|00002220| 74 65 72 57 6f 72 6c 64 | 20 7b 73 63 72 54 6f 57 |terWorld| {scrToW|
|00002230| 6f 72 6c 64 20 32 34 35 | 20 32 33 30 2d 36 30 7d |orld 245| 230-60}|
|00002240| 20 34 3b 0d 09 20 72 65 | 64 72 61 77 56 69 65 77 | 4;.. re|drawView|
|00002250| 20 34 3b 0d 20 29 3b 0d | 00 00 40 00 09 52 65 61 | 4;. );.|..@..Rea|
|00002260| 64 50 69 63 73 00 02 21 | 0d 20 69 66 20 7b 69 73 |dPics..!|. if {is|
|00002270| 54 68 65 72 65 20 70 69 | 63 74 75 72 65 20 4f 73 |There pi|cture Os|
|00002280| 6d 6f 73 65 7d 20 28 29 | 20 65 6c 73 65 20 28 0d |mose} ()| else (.|
|00002290| 20 20 69 66 20 7b 69 73 | 54 68 65 72 65 20 66 69 | if {is|There fi|
|000022a0| 6c 65 20 24 43 75 72 72 | 65 6e 74 28 4f 73 50 69 |le $Curr|ent(OsPi|
|000022b0| 63 43 66 67 29 7d 20 28 | 72 65 61 64 43 66 67 20 |cCfg)} (|readCfg |
|000022c0| 24 43 75 72 72 65 6e 74 | 28 4f 73 50 69 63 43 66 |$Current|(OsPicCf|
|000022d0| 67 29 29 20 65 6c 73 65 | 20 28 0d 20 20 47 65 74 |g)) else| (. Get|
|000022e0| 50 49 43 54 20 48 65 6c | 70 4c 69 6e 65 3b 0d 20 |PICT Hel|pLine;. |
|000022f0| 20 47 65 74 50 49 43 54 | 20 48 65 6c 70 4c 69 6e | GetPICT| HelpLin|
|00002300| 65 3b 0d 20 20 47 65 74 | 50 49 43 54 20 42 61 63 |e;. Get|PICT Bac|
|00002310| 6b 44 65 73 32 3b 0d 20 | 20 47 65 74 50 49 43 54 |kDes2;. | GetPICT|
|00002320| 20 42 61 63 6b 44 65 73 | 33 3b 0d 20 20 47 65 74 | BackDes|3;. Get|
|00002330| 50 49 43 54 20 4f 4c 6f | 67 6f 3b 0d 20 20 47 65 |PICT OLo|go;. Ge|
|00002340| 74 50 49 43 54 20 57 68 | 69 74 65 3b 0d 20 20 47 |tPICT Wh|ite;. G|
|00002350| 65 74 50 49 43 54 20 42 | 75 74 49 6e 3b 0d 20 20 |etPICT B|utIn;. |
|00002360| 47 65 74 50 49 43 54 20 | 42 75 74 4f 75 74 3b 0d |GetPICT |ButOut;.|
|00002370| 20 20 47 65 74 50 49 43 | 54 20 52 42 75 74 49 6e | GetPIC|T RButIn|
|00002380| 3b 0d 20 20 47 65 74 50 | 49 43 54 20 52 42 75 74 |;. GetP|ICT RBut|
|00002390| 4f 75 74 3b 0d 20 20 47 | 65 74 50 49 43 54 20 4c |Out;. G|etPICT L|
|000023a0| 42 75 74 49 6e 3b 0d 20 | 20 47 65 74 50 49 43 54 |ButIn;. | GetPICT|
|000023b0| 20 4c 42 75 74 4f 75 74 | 3b 0d 20 20 47 65 74 50 | LButOut|;. GetP|
|000023c0| 49 43 54 20 49 6e 66 6f | 49 6e 3b 0d 20 20 47 65 |ICT Info|In;. Ge|
|000023d0| 74 50 49 43 54 20 49 6e | 66 6f 4f 75 74 3b 0d 20 |tPICT In|foOut;. |
|000023e0| 20 47 65 74 50 49 43 54 | 20 44 42 75 74 49 6e 3b | GetPICT| DButIn;|
|000023f0| 0d 20 20 47 65 74 50 49 | 43 54 20 44 42 75 74 4f |. GetPI|CT DButO|
|00002400| 75 74 3b 0d 20 20 47 65 | 74 50 49 43 54 20 4f 73 |ut;. Ge|tPICT Os|
|00002410| 6d 6f 73 65 3b 0d 20 20 | 47 65 74 50 49 43 54 20 |mose;. |GetPICT |
|00002420| 48 57 61 6c 6c 3b 0d 20 | 20 47 65 74 50 49 43 54 |HWall;. | GetPICT|
|00002430| 20 44 6f 6f 72 50 69 63 | 3b 0d 20 20 47 65 74 50 | DoorPic|;. GetP|
|00002440| 49 43 54 20 5a 6f 6f 6d | 42 6f 78 3b 0d 20 20 47 |ICT Zoom|Box;. G|
|00002450| 65 74 50 49 43 54 20 54 | 72 61 6e 73 3b 0d 20 20 |etPICT T|rans;. |
|00002460| 47 65 74 50 49 43 54 20 | 45 6c 65 76 50 69 63 74 |GetPICT |ElevPict|
|00002470| 3b 0d 20 20 52 65 61 64 | 50 69 63 73 32 3b 0d 20 |;. Read|Pics2;. |
|00002480| 20 29 3b 0d 20 29 3b 0d | 00 00 40 00 0c 44 65 66 | );. );.|..@..Def|
|00002490| 46 69 6c 65 4d 65 6e 75 | 00 00 26 0d 09 64 65 66 |FileMenu|..&..def|
|000024a0| 4d 65 6e 75 09 38 20 45 | 78 69 74 20 0d 09 09 28 |Menu.8 E|xit ...(|
|000024b0| 45 78 69 74 2f 42 29 20 | 09 09 71 75 69 74 3b 0d |Exit/B) |..quit;.|
|000024c0| 00 00 40 00 09 44 6f 43 | 6c 69 63 6b 53 00 01 14 |..@..DoC|lickS...|
|000024d0| 0d 20 73 65 74 20 74 65 | 6d 70 36 20 7b 77 6f 72 |. set te|mp6 {wor|
|000024e0| 6c 64 54 6f 53 63 72 20 | 63 75 72 73 6f 72 20 36 |ldToScr |cursor 6|
|000024f0| 7d 3b 0d 20 63 6f 6e 64 | 0d 20 20 7b 50 61 73 73 |};. cond|. {Pass|
|00002500| 20 70 74 49 6e 52 67 6e | 20 24 74 65 6d 70 36 20 | ptInRgn| $temp6 |
|00002510| 44 65 63 6b 31 7d 20 73 | 79 73 42 65 65 70 20 0d |Deck1} s|ysBeep .|
|00002520| 20 20 7b 50 61 73 73 20 | 70 74 49 6e 52 67 6e 20 | {Pass |ptInRgn |
|00002530| 24 74 65 6d 70 36 20 44 | 65 63 6b 32 7d 20 73 79 |$temp6 D|eck2} sy|
|00002540| 73 42 65 65 70 20 0d 20 | 20 7b 50 61 73 73 20 70 |sBeep . | {Pass p|
|00002550| 74 49 6e 52 67 6e 20 24 | 74 65 6d 70 36 20 44 65 |tInRgn $|temp6 De|
|00002560| 63 6b 33 7d 20 73 79 73 | 42 65 65 70 0d 20 20 74 |ck3} sys|Beep. t|
|00002570| 72 75 65 20 20 28 53 6e | 61 70 50 74 53 20 7b 50 |rue (Sn|apPtS {P|
|00002580| 61 73 73 20 67 65 74 47 | 72 69 64 50 74 20 7b 50 |ass getG|ridPt {P|
|00002590| 61 73 73 20 73 63 72 54 | 6f 56 69 65 77 20 0d 20 |ass scrT|oView . |
|000025a0| 20 20 7b 77 6f 72 6c 64 | 54 6f 53 63 72 20 63 75 | {world|ToScr cu|
|000025b0| 72 73 6f 72 20 36 7d 7d | 7d 20 36 3b 0d 20 20 20 |rsor 6}}|} 6;. |
|000025c0| 69 66 20 28 24 74 65 6d | 70 20 22 3d 3d 20 74 72 |if ($tem|p "== tr|
|000025d0| 75 65 29 20 41 64 64 4c | 69 6e 65 53 3b 0d 20 20 |ue) AddL|ineS;. |
|000025e0| 29 3b 0d 00 00 40 00 0c | 4d 61 6b 65 49 6e 76 44 |);...@..|MakeInvD|
|000025f0| 61 74 61 00 06 c8 0d 09 | 6c 6f 63 61 6c 56 61 72 |ata.....|localVar|
|00002600| 20 73 63 61 6c 61 72 20 | 73 74 72 6c 65 6e 20 70 | scalar |strlen p|
|00002610| 6f 73 74 63 6e 74 20 73 | 74 61 69 72 63 6e 74 3b |ostcnt s|taircnt;|
|00002620| 0d 09 72 6f 77 6e 75 6d | 20 3d 20 35 3b 0d 09 53 |..rownum| = 5;..S|
|00002630| 65 74 42 6f 78 53 74 75 | 66 66 3b 0d 09 62 6f 78 |etBoxStu|ff;..box|
|00002640| 73 74 61 72 74 20 3d 20 | 7b 69 6e 64 65 78 20 31 |start = |{index 1|
|00002650| 20 7b 67 65 74 4c 69 6e | 65 20 73 74 6f 63 6b 72 | {getLin|e stockr|
|00002660| 65 63 6f 72 64 2e 6c 73 | 74 20 30 20 30 7d 7d 3b |ecord.ls|t 0 0}};|
|00002670| 0d 09 62 6f 78 65 6e 64 | 20 3d 20 7b 69 6e 64 65 |..boxend| = {inde|
|00002680| 78 20 32 20 7b 67 65 74 | 4c 69 6e 65 20 73 74 6f |x 2 {get|Line sto|
|00002690| 63 6b 72 65 63 6f 72 64 | 2e 6c 73 74 20 30 20 30 |ckrecord|.lst 0 0|
|000026a0| 7d 7d 3b 0d 09 68 61 72 | 64 77 61 72 65 73 74 61 |}};..har|dwaresta|
|000026b0| 72 74 20 3d 20 7b 69 6e | 64 65 78 20 31 20 7b 67 |rt = {in|dex 1 {g|
|000026c0| 65 74 4c 69 6e 65 20 73 | 74 6f 63 6b 72 65 63 6f |etLine s|tockreco|
|000026d0| 72 64 2e 6c 73 74 20 31 | 20 31 7d 7d 3b 0d 09 68 |rd.lst 1| 1}};..h|
|000026e0| 61 72 64 77 61 72 65 65 | 6e 64 20 3d 20 7b 69 6e |ardwaree|nd = {in|
|000026f0| 64 65 78 20 32 20 7b 67 | 65 74 4c 69 6e 65 20 73 |dex 2 {g|etLine s|
|00002700| 74 6f 63 6b 72 65 63 6f | 72 64 2e 6c 73 74 20 31 |tockreco|rd.lst 1|
|00002710| 20 31 7d 7d 3b 0d 09 66 | 6f 72 20 72 20 3d 20 30 | 1}};..f|or r = 0|
|00002720| 20 74 6f 20 7b 67 65 74 | 4c 69 6e 65 20 64 65 63 | to {get|Line dec|
|00002730| 6b 72 65 63 6f 72 64 73 | 2e 6c 73 74 7d 2d 31 20 |krecords|.lst}-1 |
|00002740| 28 0d 09 09 73 65 74 20 | 64 61 74 61 62 61 73 65 |(...set |database|
|00002750| 6c 69 6e 65 20 7b 67 65 | 74 4c 69 6e 65 20 64 65 |line {ge|tLine de|
|00002760| 63 6b 72 65 63 6f 72 64 | 73 2e 6c 73 74 20 24 72 |ckrecord|s.lst $r|
|00002770| 20 24 72 7d 3b 0d 09 09 | 53 70 69 6e 43 75 72 73 | $r};...|SpinCurs|
|00002780| 6f 72 3b 0d 09 09 63 6f | 6e 64 0d 09 09 28 7b 69 |or;...co|nd...({i|
|00002790| 6e 64 65 78 20 30 20 24 | 64 61 74 61 62 61 73 65 |ndex 0 $|database|
|000027a0| 6c 69 6e 65 7d 20 22 3d | 3d 20 70 6c 61 6e 6b 73 |line} "=|= planks|
|000027b0| 29 20 09 09 28 44 6f 50 | 6c 61 6e 6b 73 44 61 74 |) ..(DoP|lanksDat|
|000027c0| 61 20 28 25 31 29 29 0d | 09 09 28 7b 69 6e 64 65 |a (%1)).|..({inde|
|000027d0| 78 20 30 20 24 64 61 74 | 61 62 61 73 65 6c 69 6e |x 0 $dat|abaselin|
|000027e0| 65 7d 20 22 3d 3d 20 70 | 6f 73 74 29 20 09 09 09 |e} "== p|ost) ...|
|000027f0| 28 44 6f 50 6f 73 74 44 | 61 74 61 29 0d 09 09 28 |(DoPostD|ata)...(|
|00002800| 7b 69 6e 64 65 78 20 30 | 20 24 64 61 74 61 62 61 |{index 0| $databa|
|00002810| 73 65 6c 69 6e 65 7d 20 | 22 3d 3d 20 73 74 61 69 |seline} |"== stai|
|00002820| 72 73 29 20 09 09 28 44 | 6f 53 74 61 69 72 44 61 |rs) ..(D|oStairDa|
|00002830| 74 61 29 0d 09 09 28 7b | 69 6e 64 65 78 20 30 20 |ta)...({|index 0 |
|00002840| 24 64 61 74 61 62 61 73 | 65 6c 69 6e 65 7d 20 22 |$databas|eline} "|
|00002850| 3d 3d 20 68 61 6e 64 72 | 61 69 6c 73 29 20 09 28 |== handr|ails) .(|
|00002860| 44 6f 52 61 69 6c 44 61 | 74 61 29 0d 09 09 28 7b |DoRailDa|ta)...({|
|00002870| 69 6e 64 65 78 20 30 20 | 24 64 61 74 61 62 61 73 |index 0 |$databas|
|00002880| 65 6c 69 6e 65 7d 20 22 | 3d 3d 20 6a 6f 69 73 74 |eline} "|== joist|
|00002890| 29 20 09 09 28 44 6f 42 | 6f 78 44 61 74 61 20 28 |) ..(DoB|oxData (|
|000028a0| 25 31 29 20 6a 6f 69 73 | 74 29 0d 09 09 28 7b 69 |%1) jois|t)...({i|
|000028b0| 6e 64 65 78 20 30 20 24 | 64 61 74 61 62 61 73 65 |ndex 0 $|database|
|000028c0| 6c 69 6e 65 7d 20 22 3d | 3d 20 62 65 61 6d 29 20 |line} "=|= beam) |
|000028d0| 09 09 09 28 44 6f 42 6f | 78 44 61 74 61 20 28 25 |...(DoBo|xData (%|
|000028e0| 31 29 20 62 65 61 6d 29 | 0d 09 09 28 7b 69 6e 64 |1) beam)|...({ind|
|000028f0| 65 78 20 30 20 24 64 61 | 74 61 62 61 73 65 6c 69 |ex 0 $da|tabaseli|
|00002900| 6e 65 7d 20 22 3d 3d 20 | 72 69 6d 62 6f 61 72 64 |ne} "== |rimboard|
|00002910| 29 20 09 09 28 44 6f 42 | 6f 78 44 61 74 61 20 28 |) ..(DoB|oxData (|
|00002920| 25 31 29 20 72 69 6d 62 | 6f 61 72 64 29 0d 09 09 |%1) rimb|oard)...|
|00002930| 28 7b 69 6e 64 65 78 20 | 30 20 24 64 61 74 61 62 |({index |0 $datab|
|00002940| 61 73 65 6c 69 6e 65 7d | 20 22 3d 3d 20 73 70 69 |aseline}| "== spi|
|00002950| 6e 64 6c 65 29 20 09 09 | 28 44 6f 53 70 69 6e 64 |ndle) ..|(DoSpind|
|00002960| 6c 65 44 61 74 61 20 28 | 25 31 29 29 0d 09 09 28 |leData (|%1))...(|
|00002970| 7b 69 6e 64 65 78 20 30 | 20 24 64 61 74 61 62 61 |{index 0| $databa|
|00002980| 73 65 6c 69 6e 65 7d 20 | 22 3d 3d 20 73 74 72 69 |seline} |"== stri|
|00002990| 6e 67 65 72 73 29 20 09 | 28 44 6f 42 6f 78 44 61 |ngers) .|(DoBoxDa|
|000029a0| 74 61 20 28 25 31 29 20 | 73 74 72 69 6e 67 65 72 |ta (%1) |stringer|
|000029b0| 29 0d 09 09 28 7b 69 6e | 64 65 78 20 30 20 24 64 |)...({in|dex 0 $d|
|000029c0| 61 74 61 62 61 73 65 6c | 69 6e 65 7d 20 22 3d 3d |atabasel|ine} "==|
|000029d0| 20 6e 61 69 6c 73 31 30 | 29 20 09 09 28 44 6f 48 | nails10|) ..(DoH|
|000029e0| 6f 6c 64 65 72 44 61 74 | 61 20 28 25 31 29 20 6e |olderDat|a (%1) n|
|000029f0| 61 69 6c 73 31 30 29 0d | 09 09 28 7b 69 6e 64 65 |ails10).|..({inde|
|00002a00| 78 20 30 20 24 64 61 74 | 61 62 61 73 65 6c 69 6e |x 0 $dat|abaselin|
|00002a10| 65 7d 20 22 3d 3d 20 6e | 61 69 6c 73 31 36 29 20 |e} "== n|ails16) |
|00002a20| 09 09 28 44 6f 48 6f 6c | 64 65 72 44 61 74 61 20 |..(DoHol|derData |
|00002a30| 28 25 31 29 20 6e 61 69 | 6c 73 31 36 29 0d 09 09 |(%1) nai|ls16)...|
|00002a40| 28 7b 69 6e 64 65 78 20 | 30 20 24 64 61 74 61 62 |({index |0 $datab|
|00002a50| 61 73 65 6c 69 6e 65 7d | 20 22 3d 3d 20 73 63 72 |aseline}| "== scr|
|00002a60| 65 77 73 29 20 09 09 28 | 44 6f 48 6f 6c 64 65 72 |ews) ..(|DoHolder|
|00002a70| 44 61 74 61 20 28 25 31 | 29 20 73 63 72 65 77 73 |Data (%1|) screws|
|00002a80| 29 0d 09 09 28 7b 69 6e | 64 65 78 20 30 20 24 64 |)...({in|dex 0 $d|
|00002a90| 61 74 61 62 61 73 65 6c | 69 6e 65 7d 20 22 3d 3d |atabasel|ine} "==|
|00002aa0| 20 6a 6f 69 73 74 68 61 | 6e 67 65 72 29 20 09 28 | joistha|nger) .(|
|00002ab0| 44 6f 48 61 72 64 44 61 | 74 61 20 28 25 31 29 20 |DoHardDa|ta (%1) |
|00002ac0| 28 6a 6f 69 73 74 20 68 | 61 6e 67 65 72 29 29 0d |(joist h|anger)).|
|00002ad0| 09 09 28 7b 69 6e 64 65 | 78 20 30 20 24 64 61 74 |..({inde|x 0 $dat|
|00002ae0| 61 62 61 73 65 6c 69 6e | 65 7d 20 22 3d 3d 20 73 |abaselin|e} "== s|
|00002af0| 74 61 69 72 73 74 72 61 | 70 29 20 09 28 44 6f 48 |tairstra|p) .(DoH|
|00002b00| 61 72 64 44 61 74 61 20 | 28 25 31 29 20 28 73 74 |ardData |(%1) (st|
|00002b10| 61 69 72 20 73 74 72 61 | 70 29 29 0d 09 09 28 7b |air stra|p))...({|
|00002b20| 69 6e 64 65 78 20 30 20 | 24 64 61 74 61 62 61 73 |index 0 |$databas|
|00002b30| 65 6c 69 6e 65 7d 20 22 | 3d 3d 20 72 61 69 6c 69 |eline} "|== raili|
|00002b40| 6e 67 62 6f 6c 74 29 20 | 09 28 44 6f 48 61 72 64 |ngbolt) |.(DoHard|
|00002b50| 44 61 74 61 20 28 25 31 | 29 20 28 72 61 69 6c 69 |Data (%1|) (raili|
|00002b60| 6e 67 20 62 6f 6c 74 29 | 29 0d 09 09 28 7b 69 6e |ng bolt)|)...({in|
|00002b70| 64 65 78 20 30 20 24 64 | 61 74 61 62 61 73 65 6c |dex 0 $d|atabasel|
|00002b80| 69 6e 65 7d 20 22 3d 3d | 20 62 65 61 6d 62 6f 6c |ine} "==| beambol|
|00002b90| 74 29 20 09 09 28 44 6f | 48 61 72 64 44 61 74 61 |t) ..(Do|HardData|
|00002ba0| 20 28 25 31 29 20 28 62 | 65 61 6d 20 62 6f 6c 74 | (%1) (b|eam bolt|
|00002bb0| 29 29 0d 09 09 28 7b 69 | 6e 64 65 78 20 30 20 24 |))...({i|ndex 0 $|
|00002bc0| 64 61 74 61 62 61 73 65 | 6c 69 6e 65 7d 20 22 3d |database|line} "=|
|00002bd0| 3d 20 63 6f 6e 63 72 65 | 74 65 29 20 09 09 28 44 |= concre|te) ..(D|
|00002be0| 6f 48 61 72 64 44 61 74 | 61 20 28 25 31 29 20 63 |oHardDat|a (%1) c|
|00002bf0| 6f 6e 63 72 65 74 65 29 | 0d 09 09 28 7b 69 6e 64 |oncrete)|...({ind|
|00002c00| 65 78 20 30 20 24 64 61 | 74 61 62 61 73 65 6c 69 |ex 0 $da|tabaseli|
|00002c10| 6e 65 7d 20 22 3d 3d 20 | 72 65 70 65 6c 6c 61 6e |ne} "== |repellan|
|00002c20| 74 29 20 09 28 44 6f 48 | 61 72 64 44 61 74 61 20 |t) .(DoH|ardData |
|00002c30| 28 25 31 29 20 28 57 61 | 74 65 72 20 72 65 70 65 |(%1) (Wa|ter repe|
|00002c40| 6c 6c 65 6e 74 29 29 0d | 09 09 28 7b 69 6e 64 65 |llent)).|..({inde|
|00002c50| 78 20 30 20 24 64 61 74 | 61 62 61 73 65 6c 69 6e |x 0 $dat|abaselin|
|00002c60| 65 7d 20 22 3d 3d 20 73 | 74 61 69 6e 29 20 09 09 |e} "== s|tain) ..|
|00002c70| 28 44 6f 48 61 72 64 44 | 61 74 61 20 28 25 31 29 |(DoHardD|ata (%1)|
|00002c80| 20 28 44 65 63 6b 20 73 | 74 61 69 6e 29 29 3b 0d | (Deck s|tain));.|
|00002c90| 09 09 72 6f 77 6e 75 6d | 20 3d 20 72 6f 77 6e 75 |..rownum| = rownu|
|00002ca0| 6d 2b 31 3b 0d 09 09 29 | 3b 0d 09 44 6f 43 61 6c |m+1;...)|;..DoCal|
|00002cb0| 63 44 61 74 61 20 28 25 | 31 29 3b 0d 09 00 00 40 |cData (%|1);....@|
|00002cc0| 00 0c 44 6f 48 61 72 64 | 50 72 69 63 65 00 04 49 |..DoHard|Price..I|
|00002cd0| 0d 09 6c 6f 63 61 6c 56 | 61 72 20 73 63 61 6c 61 |..localV|ar scala|
|00002ce0| 72 20 73 74 72 6c 65 6e | 3b 0d 09 73 65 74 20 69 |r strlen|;..set i|
|00002cf0| 6e 76 63 6e 74 20 7b 69 | 6e 64 65 78 20 31 20 24 |nvcnt {i|ndex 1 $|
|00002d00| 64 61 74 61 62 61 73 65 | 6c 69 6e 65 7d 3b 0d 09 |database|line};..|
|00002d10| 63 6f 6e 64 0d 09 09 28 | 28 25 31 29 20 22 3d 3d |cond...(|(%1) "==|
|00002d20| 20 28 6a 6f 69 73 74 20 | 68 61 6e 67 65 72 29 29 | (joist |hanger))|
|00002d30| 09 28 0d 09 09 09 09 09 | 09 09 09 09 09 73 65 74 |.(......|.....set|
|00002d40| 20 68 65 61 64 20 32 78 | 36 3b 0d 09 09 09 09 09 | head 2x|6;......|
|00002d50| 09 09 09 09 09 73 65 74 | 20 74 65 6d 70 20 7b 46 |.....set| temp {F|
|00002d60| 69 6e 64 49 6e 76 44 65 | 73 63 20 68 61 72 64 77 |indInvDe|sc hardw|
|00002d70| 61 72 65 20 28 25 31 29 | 28 20 29 24 68 65 61 64 |are (%1)|( )$head|
|00002d80| 7d 3b 0d 09 09 09 09 09 | 09 09 09 09 09 29 0d 09 |};......|.....)..|
|00002d90| 09 28 28 25 31 29 20 22 | 3d 3d 20 28 73 74 61 69 |.((%1) "|== (stai|
|00002da0| 72 20 73 74 72 61 70 29 | 29 09 28 0d 09 09 09 09 |r strap)|).(.....|
|00002db0| 09 09 09 09 09 09 73 65 | 74 20 68 65 61 64 20 31 |......se|t head 1|
|00002dc0| 78 31 38 3b 0d 09 09 09 | 09 09 09 09 09 09 09 73 |x18;....|.......s|
|00002dd0| 65 74 20 74 65 6d 70 20 | 7b 46 69 6e 64 49 6e 76 |et temp |{FindInv|
|00002de0| 44 65 73 63 20 68 61 72 | 64 77 61 72 65 20 28 25 |Desc har|dware (%|
|00002df0| 31 29 28 20 29 24 68 65 | 61 64 7d 3b 0d 09 09 09 |1)( )$he|ad};....|
|00002e00| 09 09 09 09 09 09 09 29 | 0d 09 09 28 28 25 31 29 |.......)|...((%1)|
|00002e10| 20 22 3d 3d 20 28 72 61 | 69 6c 69 6e 67 20 62 6f | "== (ra|iling bo|
|00002e20| 6c 74 29 29 09 28 0d 09 | 09 09 09 09 09 09 09 09 |lt)).(..|........|
|00002e30| 09 73 65 74 20 68 65 61 | 64 20 31 2f 32 78 37 3b |.set hea|d 1/2x7;|
|00002e40| 0d 09 09 09 09 09 09 09 | 09 09 09 73 65 74 20 74 |........|...set t|
|00002e50| 65 6d 70 20 7b 46 69 6e | 64 49 6e 76 44 65 73 63 |emp {Fin|dInvDesc|
|00002e60| 20 68 61 72 64 77 61 72 | 65 20 28 25 31 29 28 20 | hardwar|e (%1)( |
|00002e70| 29 24 68 65 61 64 7d 3b | 0d 09 09 09 09 09 09 09 |)$head};|........|
|00002e80| 09 09 09 29 0d 09 09 28 | 28 25 31 29 20 22 3d 3d |...)...(|(%1) "==|
|00002e90| 20 28 62 65 61 6d 20 62 | 6f 6c 74 29 29 09 09 28 | (beam b|olt))..(|
|00002ea0| 0d 09 09 09 09 09 09 09 | 09 09 09 73 65 74 20 68 |........|...set h|
|00002eb0| 65 61 64 20 31 2f 32 78 | 38 3b 0d 09 09 09 09 09 |ead 1/2x|8;......|
|00002ec0| 09 09 09 09 09 73 65 74 | 20 74 65 6d 70 20 7b 46 |.....set| temp {F|
|00002ed0| 69 6e 64 49 6e 76 44 65 | 73 63 20 68 61 72 64 77 |indInvDe|sc hardw|
|00002ee0| 61 72 65 20 28 25 31 29 | 28 20 29 24 68 65 61 64 |are (%1)|( )$head|
|00002ef0| 7d 3b 0d 09 09 09 09 09 | 09 09 09 09 09 29 0d 09 |};......|.....)..|
|00002f00| 09 28 28 25 31 29 20 22 | 3d 3d 20 28 63 6f 6e 63 |.((%1) "|== (conc|
|00002f10| 72 65 74 65 29 29 09 09 | 28 0d 09 09 09 09 09 09 |rete))..|(.......|
|00002f20| 09 09 09 09 73 65 74 20 | 68 65 61 64 20 36 30 6c |....set |head 60l|
|00002f30| 62 73 3b 0d 09 09 09 09 | 09 09 09 09 09 09 73 65 |bs;.....|......se|
|00002f40| 74 20 74 65 6d 70 20 7b | 46 69 6e 64 49 6e 76 44 |t temp {|FindInvD|
|00002f50| 65 73 63 20 68 61 72 64 | 77 61 72 65 20 28 25 31 |esc hard|ware (%1|
|00002f60| 29 28 20 29 24 68 65 61 | 64 7d 3b 0d 09 09 09 09 |)( )$hea|d};.....|
|00002f70| 09 09 09 09 09 09 29 0d | 09 09 28 28 25 31 29 20 |......).|..((%1) |
|00002f80| 22 3d 3d 20 28 57 61 74 | 65 72 20 72 65 70 65 6c |"== (Wat|er repel|
|00002f90| 6c 65 6e 74 29 29 09 09 | 28 0d 09 09 09 09 09 09 |lent))..|(.......|
|00002fa0| 09 09 09 09 73 65 74 20 | 68 65 61 64 20 31 67 61 |....set |head 1ga|
|00002fb0| 6c 2f 31 35 30 73 71 2e | 66 74 2e 3b 0d 09 09 09 |l/150sq.|ft.;....|
|00002fc0| 09 09 09 09 09 09 09 73 | 65 74 20 74 65 6d 70 20 |.......s|et temp |
|00002fd0| 7b 46 69 6e 64 49 6e 76 | 44 65 73 63 20 68 61 72 |{FindInv|Desc har|
|00002fe0| 64 77 61 72 65 20 28 25 | 31 29 28 20 29 24 68 65 |dware (%|1)( )$he|
|00002ff0| 61 64 7d 3b 0d 09 09 09 | 09 09 09 09 09 09 09 29 |ad};....|.......)|
|00003000| 0d 09 09 28 28 25 31 29 | 20 22 3d 3d 20 28 44 65 |...((%1)| "== (De|
|00003010| 63 6b 20 73 74 61 69 6e | 29 29 09 09 09 28 0d 09 |ck stain|))...(..|
|00003020| 09 09 09 09 09 09 09 09 | 09 73 65 74 20 68 65 61 |........|.set hea|
|00003030| 64 20 31 67 61 6c 2f 31 | 35 30 73 71 2e 66 74 2e |d 1gal/1|50sq.ft.|
|00003040| 3b 0d 09 09 09 09 09 09 | 09 09 09 09 73 65 74 20 |;.......|....set |
|00003050| 74 65 6d 70 20 7b 46 69 | 6e 64 49 6e 76 44 65 73 |temp {Fi|ndInvDes|
|00003060| 63 20 68 61 72 64 77 61 | 72 65 20 28 25 31 29 28 |c hardwa|re (%1)(|
|00003070| 20 29 24 68 65 61 64 7d | 3b 0d 09 09 09 09 09 09 | )$head}|;.......|
|00003080| 09 09 09 09 29 3b 0d 09 | 69 6e 76 70 72 69 63 65 |....);..|invprice|
|00003090| 20 3d 20 7b 46 69 6e 64 | 49 6e 76 50 72 69 63 65 | = {Find|InvPrice|
|000030a0| 20 68 61 72 64 77 61 72 | 65 20 28 25 31 29 28 20 | hardwar|e (%1)( |
|000030b0| 29 24 68 65 61 64 28 20 | 29 24 74 65 6d 70 7d 3b |)$head( |)$temp};|
|000030c0| 0d 09 69 6e 76 63 6e 74 | 20 3d 20 7b 69 6e 64 65 |..invcnt| = {inde|
|000030d0| 78 20 31 20 24 64 61 74 | 61 62 61 73 65 6c 69 6e |x 1 $dat|abaselin|
|000030e0| 65 7d 3b 0d 09 74 6f 74 | 61 6c 69 6e 76 70 72 69 |e};..tot|alinvpri|
|000030f0| 63 65 20 3d 20 7b 3f 69 | 6e 76 70 72 69 63 65 2a |ce = {?i|nvprice*|
|00003100| 69 6e 76 63 6e 74 2b 74 | 6f 74 61 6c 69 6e 76 70 |invcnt+t|otalinvp|
|00003110| 72 69 63 65 7d 3b 0d 09 | 00 00 40 00 06 69 73 49 |rice};..|..@..isI|
|00003120| 6e 74 00 01 b0 0d 20 48 | 6f 72 69 7a 20 3d 20 66 |nt.... H|oriz = f|
|00003130| 61 6c 73 65 3b 0d 09 73 | 65 74 44 72 61 77 53 74 |alse;..s|etDrawSt|
|00003140| 61 74 65 20 2b 3b 0d 09 | 66 69 6e 64 20 54 52 41 |ate +;..|find TRA|
|00003150| 50 53 49 5a 45 20 63 75 | 72 73 6f 72 20 76 69 65 |PSIZE cu|rsor vie|
|00003160| 77 3b 0d 09 69 66 20 24 | 53 55 43 43 45 53 53 20 |w;..if $|SUCCESS |
|00003170| 28 0d 20 20 69 6e 74 65 | 72 73 65 63 20 3d 20 74 |(. inte|rsec = t|
|00003180| 72 75 65 3b 0d 6e 6f 6f | 70 20 20 69 66 20 28 7b |rue;.noo|p if ({|
|00003190| 63 61 64 43 6f 75 6e 74 | 20 63 75 72 72 65 6e 74 |cadCount| current|
|000031a0| 20 32 7d 20 3d 3d 20 33 | 29 20 28 67 6f 50 74 20 | 2} == 3|) (goPt |
|000031b0| 28 2d 31 29 29 3b 0d 09 | 20 74 65 6d 70 56 20 3d |(-1));..| tempV =|
|000031c0| 20 65 6e 74 7b 6e 65 78 | 74 4e 6f 64 65 20 7b 69 | ent{nex|tNode {i|
|000031d0| 6e 64 65 78 20 31 20 7b | 67 65 74 43 75 72 43 61 |ndex 1 {|getCurCa|
|000031e0| 64 7d 7d 7d 3b 0d 09 20 | 74 65 6d 70 32 56 20 3d |d}}};.. |temp2V =|
|000031f0| 20 65 6e 74 7b 69 6e 64 | 65 78 20 31 20 7b 67 65 | ent{ind|ex 1 {ge|
|00003200| 74 43 75 72 43 61 64 7d | 7d 3b 0d 09 09 69 66 20 |tCurCad}|};...if |
|00003210| 28 7b 3f 28 b0 78 28 74 | 65 6d 70 56 29 20 2d 20 |({?(.x(t|empV) - |
|00003220| b0 78 28 74 65 6d 70 32 | 56 29 29 7d 20 3d 3d 20 |.x(temp2|V))} == |
|00003230| 30 29 20 28 48 6f 72 69 | 7a 20 3d 20 74 72 75 65 |0) (Hori|z = true|
|00003240| 29 20 0d 20 20 65 6c 73 | 65 20 28 48 6f 72 69 7a |) . els|e (Horiz|
|00003250| 20 3d 20 66 61 6c 73 65 | 29 3b 0d 20 20 49 6e 74 | = false|);. Int|
|00003260| 25 31 31 20 3d 20 7b 3f | 6c 61 73 74 7d 3b 0d 20 |%11 = {?|last};. |
|00003270| 20 65 6e 64 43 75 72 4c | 6e 3b 0d 20 29 20 0d 20 | endCurL|n;. ) . |
|00003280| 65 6c 73 65 20 28 0d 20 | 20 49 6e 74 25 31 31 20 |else (. | Int%11 |
|00003290| 3d 20 5b 2d 31 2c 2d 31 | 2c 2d 31 5d 3b 0d 20 20 |= [-1,-1|,-1];. |
|000032a0| 69 6e 74 65 72 73 65 63 | 20 3d 20 66 61 6c 73 65 |intersec| = false|
|000032b0| 3b 0d 20 20 48 6f 72 69 | 7a 20 3d 20 74 72 75 65 |;. Hori|z = true|
|000032c0| 29 3b 0d 09 73 65 74 44 | 72 61 77 53 74 61 74 65 |);..setD|rawState|
|000032d0| 20 2d 3b 0d 00 00 40 00 | 0a 43 61 6c 63 48 61 6e | -;...@.|.CalcHan|
|000032e0| 64 32 00 00 d4 0d 20 6c | 6f 63 61 6c 56 61 72 20 |d2.... l|ocalVar |
|000032f0| 73 63 61 6c 61 72 20 44 | 69 66 3b 0d 20 69 66 20 |scalar D|if;. if |
|00003300| 28 7b 3f 25 31 7d 20 22 | 3d 3d 20 7b 3f 25 32 7d |({?%1} "|== {?%2}|
|00003310| 29 20 28 29 20 65 6c 73 | 65 20 28 0d 20 73 65 74 |) () els|e (. set|
|00003320| 20 74 65 6d 70 32 20 7b | 77 6f 72 6c 64 54 6f 53 | temp2 {|worldToS|
|00003330| 63 72 20 7b 3f 28 25 31 | 2b 25 32 29 2f 32 2b 44 |cr {?(%1|+%2)/2+D|
|00003340| 69 72 31 7d 20 36 7d 3b | 0d 20 69 66 20 7b 50 61 |ir1} 6};|. if {Pa|
|00003350| 73 73 20 70 74 49 6e 52 | 67 6e 20 24 74 65 6d 70 |ss ptInR|gn $temp|
|00003360| 32 20 44 65 63 6b 25 36 | 7d 20 28 0d 20 20 20 44 |2 Deck%6|} (. D|
|00003370| 72 61 77 48 61 6e 64 20 | 25 31 20 25 32 20 25 33 |rawHand |%1 %2 %3|
|00003380| 20 25 34 20 35 35 3b 0d | 20 20 29 20 65 6c 73 65 | %4 55;.| ) else|
|00003390| 20 28 0d 20 20 20 44 72 | 61 77 48 61 6e 64 20 25 | (. Dr|awHand %|
|000033a0| 31 20 25 32 20 25 33 20 | 25 34 20 35 35 3b 0d 20 |1 %2 %3 |%4 55;. |
|000033b0| 20 29 3b 0d 20 29 3b 0d | 00 00 40 00 09 4d 61 6b | );. );.|..@..Mak|
|000033c0| 65 46 42 75 74 00 06 f5 | 0d 09 64 65 66 46 72 65 |eFBut...|..defFre|
|000033d0| 65 42 75 74 74 6f 6e 20 | 25 31 2b 39 20 25 32 2b |eButton |%1+9 %2+|
|000033e0| 31 32 20 25 31 2b 33 33 | 20 25 32 2b 33 38 20 43 |12 %1+33| %2+38 C|
|000033f0| 6f 6e 74 72 6f 6c 73 20 | 43 68 61 69 72 53 25 33 |ontrols |ChairS%3|
|00003400| 20 6e 6f 6f 70 20 30 78 | 66 66 66 66 20 31 20 28 | noop 0x|ffff 1 (|
|00003410| 43 46 72 42 75 74 20 43 | 68 61 69 72 53 29 25 33 |CFrBut C|hairS)%3|
|00003420| 28 20 43 68 61 69 72 53 | 20 34 20 35 20 32 38 20 |( ChairS| 4 5 28 |
|00003430| 33 31 29 20 43 68 61 69 | 72 53 3b 0d 09 64 65 66 |31) Chai|rS;..def|
|00003440| 46 72 65 65 42 75 74 74 | 6f 6e 20 25 31 2b 34 30 |FreeButt|on %1+40|
|00003450| 20 25 32 2b 31 32 20 25 | 31 2b 36 33 20 25 32 2b | %2+12 %|1+63 %2+|
|00003460| 33 38 20 43 6f 6e 74 72 | 6f 6c 73 20 43 68 61 69 |38 Contr|ols Chai|
|00003470| 72 4e 25 33 20 6e 6f 6f | 70 20 30 78 66 66 66 66 |rN%3 noo|p 0xffff|
|00003480| 20 31 20 28 43 46 72 42 | 75 74 20 43 68 61 69 72 | 1 (CFrB|ut Chair|
|00003490| 4e 29 25 33 28 20 43 68 | 61 69 72 4e 20 33 35 20 |N)%3( Ch|airN 35 |
|000034a0| 35 20 35 38 20 33 31 29 | 20 43 68 61 69 72 4e 3b |5 58 31)| ChairN;|
|000034b0| 0d 09 64 65 66 46 72 65 | 65 42 75 74 74 6f 6e 20 |..defFre|eButton |
|000034c0| 25 31 2b 36 34 20 25 32 | 2b 31 34 20 25 31 2b 39 |%1+64 %2|+14 %1+9|
|000034d0| 33 20 25 32 2b 33 37 20 | 43 6f 6e 74 72 6f 6c 73 |3 %2+37 |Controls|
|000034e0| 20 43 68 61 69 72 57 25 | 33 20 6e 6f 6f 70 20 30 | ChairW%|3 noop 0|
|000034f0| 78 66 66 66 66 20 31 20 | 28 43 46 72 42 75 74 20 |xffff 1 |(CFrBut |
|00003500| 43 68 61 69 72 57 29 25 | 33 28 20 43 68 61 69 72 |ChairW)%|3( Chair|
|00003510| 57 20 35 39 20 37 20 38 | 38 20 33 30 29 20 43 68 |W 59 7 8|8 30) Ch|
|00003520| 61 69 72 57 3b 0d 09 64 | 65 66 46 72 65 65 42 75 |airW;..d|efFreeBu|
|00003530| 74 74 6f 6e 20 25 31 2b | 39 38 20 25 32 2b 31 36 |tton %1+|98 %2+16|
|00003540| 20 25 31 2b 31 32 36 20 | 25 32 2b 33 36 20 43 6f | %1+126 |%2+36 Co|
|00003550| 6e 74 72 6f 6c 73 20 43 | 68 61 69 72 45 25 33 20 |ntrols C|hairE%3 |
|00003560| 6e 6f 6f 70 20 30 78 66 | 66 66 66 20 31 20 28 43 |noop 0xf|fff 1 (C|
|00003570| 46 72 42 75 74 20 43 68 | 61 69 72 45 29 25 33 28 |FrBut Ch|airE)%3(|
|00003580| 20 43 68 61 69 72 45 20 | 39 33 20 39 20 31 32 31 | ChairE |93 9 121|
|00003590| 20 32 39 29 20 43 68 61 | 69 72 45 3b 0d 09 64 65 | 29) Cha|irE;..de|
|000035a0| 66 46 72 65 65 42 75 74 | 74 6f 6e 20 25 31 2b 31 |fFreeBut|ton %1+1|
|000035b0| 31 20 25 32 2b 34 38 20 | 25 31 2b 38 39 20 25 32 |1 %2+48 |%1+89 %2|
|000035c0| 2b 31 33 36 20 43 6f 6e | 74 72 6f 6c 73 20 54 61 |+136 Con|trols Ta|
|000035d0| 62 6c 65 52 25 33 20 6e | 6f 6f 70 20 30 78 66 66 |bleR%3 n|oop 0xff|
|000035e0| 66 66 20 31 20 28 43 46 | 72 42 75 74 20 54 61 62 |ff 1 (CF|rBut Tab|
|000035f0| 6c 65 52 29 25 33 28 20 | 54 61 62 6c 65 52 20 36 |leR)%3( |TableR 6|
|00003600| 20 34 31 20 38 34 20 31 | 32 39 29 20 54 61 62 6c | 41 84 1|29) Tabl|
|00003610| 65 52 3b 0d 09 64 65 66 | 46 72 65 65 42 75 74 74 |eR;..def|FreeButt|
|00003620| 6f 6e 20 25 31 2b 39 39 | 20 25 32 2b 34 38 20 25 |on %1+99| %2+48 %|
|00003630| 31 2b 31 32 31 20 25 32 | 2b 31 30 31 20 43 6f 6e |1+121 %2|+101 Con|
|00003640| 74 72 6f 6c 73 20 42 69 | 6b 69 6e 69 25 33 20 6e |trols Bi|kini%3 n|
|00003650| 6f 6f 70 20 30 78 66 66 | 66 66 20 31 20 28 43 46 |oop 0xff|ff 1 (CF|
|00003660| 72 42 75 74 20 42 69 6b | 69 6e 69 29 25 33 28 20 |rBut Bik|ini)%3( |
|00003670| 42 69 6b 69 6e 69 20 39 | 34 20 34 31 20 31 31 36 |Bikini 9|4 41 116|
|00003680| 20 39 34 29 20 42 69 6b | 69 6e 69 3b 0d 09 64 65 | 94) Bik|ini;..de|
|00003690| 66 46 72 65 65 42 75 74 | 74 6f 6e 20 25 31 2b 31 |fFreeBut|ton %1+1|
|000036a0| 30 31 20 25 32 2b 31 31 | 37 20 25 31 2b 31 31 38 |01 %2+11|7 %1+118|
|000036b0| 20 25 32 2b 31 33 33 20 | 43 6f 6e 74 72 6f 6c 73 | %2+133 |Controls|
|000036c0| 20 50 6c 61 6e 74 31 25 | 33 20 6e 6f 6f 70 20 30 | Plant1%|3 noop 0|
|000036d0| 78 66 66 66 66 20 31 20 | 28 43 46 72 42 75 74 20 |xffff 1 |(CFrBut |
|000036e0| 50 6c 61 6e 74 31 29 25 | 33 28 20 50 6c 61 6e 74 |Plant1)%|3( Plant|
|000036f0| 31 20 39 36 20 31 31 30 | 20 31 31 33 20 31 32 36 |1 96 110| 113 126|
|00003700| 29 20 50 6c 61 6e 74 31 | 3b 0d 09 64 65 66 46 72 |) Plant1|;..defFr|
|00003710| 65 65 42 75 74 74 6f 6e | 20 25 31 2b 31 36 20 25 |eeButton| %1+16 %|
|00003720| 32 2b 31 34 31 20 25 31 | 2b 34 34 20 25 32 2b 31 |2+141 %1|+44 %2+1|
|00003730| 36 34 20 43 6f 6e 74 72 | 6f 6c 73 20 42 42 51 73 |64 Contr|ols BBQs|
|00003740| 53 25 33 20 6e 6f 6f 70 | 20 30 78 66 66 66 66 20 |S%3 noop| 0xffff |
|00003750| 31 20 28 43 46 72 42 75 | 74 20 42 42 51 73 53 29 |1 (CFrBu|t BBQsS)|
|00003760| 25 33 28 20 42 42 51 73 | 53 20 31 31 20 31 33 34 |%3( BBQs|S 11 134|
|00003770| 20 33 39 20 31 35 37 29 | 20 42 42 51 73 53 3b 0d | 39 157)| BBQsS;.|
|00003780| 09 64 65 66 46 72 65 65 | 42 75 74 74 6f 6e 20 25 |.defFree|Button %|
|00003790| 31 2b 35 33 20 25 32 2b | 31 34 31 20 25 31 2b 39 |1+53 %2+|141 %1+9|
|000037a0| 30 20 25 32 2b 31 36 34 | 20 43 6f 6e 74 72 6f 6c |0 %2+164| Control|
|000037b0| 73 20 42 42 51 6c 53 25 | 33 20 6e 6f 6f 70 20 30 |s BBQlS%|3 noop 0|
|000037c0| 78 66 66 66 66 20 31 20 | 28 43 46 72 42 75 74 20 |xffff 1 |(CFrBut |
|000037d0| 42 42 51 6c 53 29 25 33 | 28 20 42 42 51 6c 53 20 |BBQlS)%3|( BBQlS |
|000037e0| 34 38 20 31 33 34 20 38 | 35 20 31 35 37 29 20 42 |48 134 8|5 157) B|
|000037f0| 42 51 6c 53 3b 0d 09 64 | 65 66 46 72 65 65 42 75 |BQlS;..d|efFreeBu|
|00003800| 74 74 6f 6e 20 25 31 2b | 31 36 20 25 32 2b 31 37 |tton %1+|16 %2+17|
|00003810| 34 20 25 31 2b 34 30 20 | 25 32 2b 32 31 31 20 43 |4 %1+40 |%2+211 C|
|00003820| 6f 6e 74 72 6f 6c 73 20 | 42 42 51 4c 25 33 20 6e |ontrols |BBQL%3 n|
|00003830| 6f 6f 70 20 30 78 66 66 | 66 66 20 31 20 28 43 46 |oop 0xff|ff 1 (CF|
|00003840| 72 42 75 74 20 42 42 51 | 4c 29 25 33 28 20 42 42 |rBut BBQ|L)%3( BB|
|00003850| 51 4c 20 31 31 20 31 36 | 37 20 33 35 20 32 30 34 |QL 11 16|7 35 204|
|00003860| 29 20 42 42 51 4c 3b 0d | 09 64 65 66 46 72 65 65 |) BBQL;.|.defFree|
|00003870| 42 75 74 74 6f 6e 20 25 | 31 2b 34 38 20 25 32 2b |Button %|1+48 %2+|
|00003880| 31 37 38 20 25 31 2b 37 | 30 20 25 32 2b 32 30 35 |178 %1+7|0 %2+205|
|00003890| 20 43 6f 6e 74 72 6f 6c | 73 20 42 42 51 53 25 33 | Control|s BBQS%3|
|000038a0| 20 6e 6f 6f 70 20 30 78 | 66 66 66 66 20 31 20 28 | noop 0x|ffff 1 (|
|000038b0| 43 46 72 42 75 74 20 42 | 42 51 53 29 25 33 28 20 |CFrBut B|BQS)%3( |
|000038c0| 42 42 51 53 20 34 33 20 | 31 37 31 20 36 35 20 31 |BBQS 43 |171 65 1|
|000038d0| 39 38 29 20 42 42 51 53 | 3b 0d 09 64 65 66 46 72 |98) BBQS|;..defFr|
|000038e0| 65 65 42 75 74 74 6f 6e | 20 25 31 2b 39 39 20 25 |eeButton| %1+99 %|
|000038f0| 32 2b 31 34 34 20 25 31 | 2b 31 31 39 20 25 32 2b |2+144 %1|+119 %2+|
|00003900| 31 36 32 20 43 6f 6e 74 | 72 6f 6c 73 20 42 42 51 |162 Cont|rols BBQ|
|00003910| 52 25 33 20 6e 6f 6f 70 | 20 30 78 66 66 66 66 20 |R%3 noop| 0xffff |
|00003920| 31 20 28 43 46 72 42 75 | 74 20 42 42 51 52 29 25 |1 (CFrBu|t BBQR)%|
|00003930| 33 28 20 42 42 51 52 20 | 39 34 20 31 33 37 20 31 |3( BBQR |94 137 1|
|00003940| 31 34 20 31 35 35 29 20 | 42 42 51 52 3b 0d 09 64 |14 155) |BBQR;..d|
|00003950| 65 66 46 72 65 65 42 75 | 74 74 6f 6e 20 25 31 2b |efFreeBu|tton %1+|
|00003960| 37 34 20 25 32 2b 31 36 | 37 20 25 31 2b 31 32 38 |74 %2+16|7 %1+128|
|00003970| 20 25 32 2b 32 31 38 20 | 43 6f 6e 74 72 6f 6c 73 | %2+218 |Controls|
|00003980| 20 54 75 62 31 25 33 20 | 6e 6f 6f 70 20 30 78 66 | Tub1%3 |noop 0xf|
|00003990| 66 66 66 20 31 20 28 43 | 46 72 42 75 74 20 54 75 |fff 1 (C|FrBut Tu|
|000039a0| 62 31 29 25 33 28 20 54 | 75 62 31 20 36 39 20 31 |b1)%3( T|ub1 69 1|
|000039b0| 36 30 20 31 32 33 20 32 | 31 31 29 20 54 75 62 31 |60 123 2|11) Tub1|
|000039c0| 3b 0d 20 63 6c 65 61 72 | 56 61 72 20 43 68 61 69 |;. clear|Var Chai|
|000039d0| 72 53 25 33 3b 0d 20 63 | 6c 65 61 72 56 61 72 20 |rS%3;. c|learVar |
|000039e0| 43 68 61 69 72 4e 25 33 | 3b 0d 20 63 6c 65 61 72 |ChairN%3|;. clear|
|000039f0| 56 61 72 20 43 68 61 69 | 72 57 25 33 3b 0d 20 63 |Var Chai|rW%3;. c|
|00003a00| 6c 65 61 72 56 61 72 20 | 43 68 61 69 72 45 25 33 |learVar |ChairE%3|
|00003a10| 3b 0d 20 63 6c 65 61 72 | 56 61 72 20 42 42 51 4c |;. clear|Var BBQL|
|00003a20| 25 33 3b 0d 20 63 6c 65 | 61 72 56 61 72 20 42 42 |%3;. cle|arVar BB|
|00003a30| 51 6c 53 25 33 3b 0d 20 | 63 6c 65 61 72 56 61 72 |QlS%3;. |clearVar|
|00003a40| 20 42 42 51 73 53 25 33 | 3b 0d 20 63 6c 65 61 72 | BBQsS%3|;. clear|
|00003a50| 56 61 72 20 54 61 62 6c | 65 52 25 33 3b 0d 20 63 |Var Tabl|eR%3;. c|
|00003a60| 6c 65 61 72 56 61 72 20 | 42 69 6b 69 6e 69 25 33 |learVar |Bikini%3|
|00003a70| 3b 0d 20 63 6c 65 61 72 | 56 61 72 20 42 42 51 52 |;. clear|Var BBQR|
|00003a80| 25 33 3b 0d 20 63 6c 65 | 61 72 56 61 72 20 42 42 |%3;. cle|arVar BB|
|00003a90| 51 53 25 33 3b 0d 20 63 | 6c 65 61 72 56 61 72 20 |QS%3;. c|learVar |
|00003aa0| 50 6c 61 6e 74 31 25 33 | 3b 0d 20 63 6c 65 61 72 |Plant1%3|;. clear|
|00003ab0| 56 61 72 20 54 75 62 31 | 25 33 3b 0d 00 00 40 00 |Var Tub1|%3;...@.|
|00003ac0| 09 50 6c 61 63 65 42 75 | 74 00 00 6d 0d 20 73 65 |.PlaceBu|t..m. se|
|00003ad0| 74 44 72 61 77 53 63 72 | 65 65 6e 20 43 6f 6e 74 |tDrawScr|een Cont|
|00003ae0| 72 6f 6c 73 3b 0d 20 50 | 61 73 73 20 64 72 61 77 |rols;. P|ass draw|
|00003af0| 50 69 63 20 25 31 20 24 | 4c 6f 63 25 32 3b 0d 20 |Pic %1 $|Loc%2;. |
|00003b00| 73 65 74 42 6b 47 6e 64 | 20 43 6f 6e 74 72 6f 6c |setBkGnd| Control|
|00003b10| 73 20 77 68 69 74 65 20 | 62 6c 75 65 20 6c 61 74 |s white |blue lat|
|00003b20| 65 72 3b 0d 20 73 65 74 | 54 65 78 74 20 32 30 20 |er;. set|Text 20 |
|00003b30| 31 20 39 20 31 38 3b 0d | 00 00 40 00 0f 44 6f 53 |1 9 18;.|..@..DoS|
|00003b40| 70 69 6e 64 6c 65 50 72 | 69 63 65 00 01 07 0d 09 |pindlePr|ice.....|
|00003b50| 6c 6f 63 61 6c 56 61 72 | 20 73 63 61 6c 61 72 20 |localVar| scalar |
|00003b60| 73 63 6e 74 20 73 6c 65 | 6e 3b 0d 09 69 66 20 24 |scnt sle|n;..if $|
|00003b70| 66 69 72 73 74 73 70 69 | 6e 64 6c 65 20 28 0d 09 |firstspi|ndle (..|
|00003b80| 09 73 65 74 20 66 69 72 | 73 74 73 70 69 6e 64 6c |.set fir|stspindl|
|00003b90| 65 20 66 61 6c 73 65 3b | 0d 09 09 29 3b 0d 09 73 |e false;|...);..s|
|00003ba0| 63 6e 74 20 3d 20 7b 69 | 6e 64 65 78 20 31 20 24 |cnt = {i|ndex 1 $|
|00003bb0| 64 61 74 61 62 61 73 65 | 6c 69 6e 65 7d 3b 0d 09 |database|line};..|
|00003bc0| 74 6f 74 61 6c 73 70 69 | 6e 64 6c 65 63 6e 74 20 |totalspi|ndlecnt |
|00003bd0| 3d 20 73 63 6e 74 2b 74 | 6f 74 61 6c 73 70 69 6e |= scnt+t|otalspin|
|00003be0| 64 6c 65 63 6e 74 3b 0d | 09 69 66 20 28 7b 69 6e |dlecnt;.|.if ({in|
|00003bf0| 64 65 78 20 32 20 24 64 | 61 74 61 62 61 73 65 6c |dex 2 $d|atabasel|
|00003c00| 69 6e 65 7d 20 22 3d 3d | 20 72 6f 6d 61 6e 29 20 |ine} "==| roman) |
|00003c10| 28 73 65 74 20 73 70 69 | 6e 64 6c 65 6d 65 6d 73 |(set spi|ndlemems|
|00003c20| 69 7a 65 20 32 78 32 29 | 20 0d 20 65 6c 73 65 20 |ize 2x2)| . else |
|00003c30| 28 73 65 74 20 73 70 69 | 6e 64 6c 65 6d 65 6d 73 |(set spi|ndlemems|
|00003c40| 69 7a 65 20 28 51 75 65 | 65 6e 2d 41 6e 6e 65 29 |ize (Que|en-Anne)|
|00003c50| 29 3b 0d 09 00 00 40 00 | 0c 47 65 74 44 61 74 65 |);....@.|.GetDate|
|00003c60| 49 6e 66 6f 00 03 14 0d | 09 6c 6f 63 61 6c 20 64 |Info....|.local d|
|00003c70| 69 6e 66 6f 20 7b 64 61 | 74 65 54 69 6d 65 7d 3b |info {da|teTime};|
|00003c80| 0d 09 6c 6f 63 61 6c 20 | 64 61 74 65 20 7b 69 6e |..local |date {in|
|00003c90| 64 65 78 20 31 20 24 64 | 69 6e 66 6f 7d 3b 0d 09 |dex 1 $d|info};..|
|00003ca0| 63 6f 6e 64 0d 09 09 28 | 28 25 31 29 20 22 3d 3d |cond...(|(%1) "==|
|00003cb0| 20 64 61 79 29 09 09 28 | 73 65 74 20 61 6e 73 20 | day)..(|set ans |
|00003cc0| 7b 69 6e 64 65 78 20 30 | 20 24 64 69 6e 66 6f 7d |{index 0| $dinfo}|
|00003cd0| 29 0d 09 09 28 28 25 31 | 29 20 22 3d 3d 20 64 61 |)...((%1|) "== da|
|00003ce0| 74 65 29 09 09 28 73 65 | 74 20 61 6e 73 20 7b 69 |te)..(se|t ans {i|
|00003cf0| 6e 64 65 78 53 74 72 69 | 6e 67 20 24 64 61 74 65 |ndexStri|ng $date|
|00003d00| 20 33 20 34 7d 29 0d 09 | 09 28 28 25 31 29 20 22 | 3 4})..|.((%1) "|
|00003d10| 3d 3d 20 6d 6f 6e 74 68 | 29 09 09 28 0d 09 09 09 |== month|)..(....|
|00003d20| 09 09 09 09 6c 6f 63 61 | 6c 20 6d 74 68 20 7b 69 |....loca|l mth {i|
|00003d30| 6e 64 65 78 53 74 72 69 | 6e 67 20 24 64 61 74 65 |ndexStri|ng $date|
|00003d40| 20 30 20 31 7d 3b 0d 09 | 09 09 09 09 09 09 63 6f | 0 1};..|......co|
|00003d50| 6e 64 0d 09 09 09 09 09 | 09 09 09 28 24 6d 74 68 |nd......|...($mth|
|00003d60| 20 22 3d 3d 20 30 31 29 | 09 28 73 65 74 20 61 6e | "== 01)|.(set an|
|00003d70| 73 20 4a 61 6e 75 61 72 | 79 29 0d 09 09 09 09 09 |s Januar|y)......|
|00003d80| 09 09 09 28 24 6d 74 68 | 20 22 3d 3d 20 30 32 29 |...($mth| "== 02)|
|00003d90| 09 28 73 65 74 20 61 6e | 73 20 46 65 62 72 75 61 |.(set an|s Februa|
|00003da0| 72 79 29 0d 09 09 09 09 | 09 09 09 09 28 24 6d 74 |ry).....|....($mt|
|00003db0| 68 20 22 3d 3d 20 30 33 | 29 09 28 73 65 74 20 61 |h "== 03|).(set a|
|00003dc0| 6e 73 20 4d 61 72 63 68 | 29 0d 09 09 09 09 09 09 |ns March|).......|
|00003dd0| 09 09 28 24 6d 74 68 20 | 22 3d 3d 20 30 34 29 09 |..($mth |"== 04).|
|00003de0| 28 73 65 74 20 61 6e 73 | 20 41 70 72 69 6c 29 0d |(set ans| April).|
|00003df0| 09 09 09 09 09 09 09 09 | 28 24 6d 74 68 20 22 3d |........|($mth "=|
|00003e00| 3d 20 30 35 29 09 28 73 | 65 74 20 61 6e 73 20 4d |= 05).(s|et ans M|
|00003e10| 61 79 29 0d 09 09 09 09 | 09 09 09 09 28 24 6d 74 |ay).....|....($mt|
|00003e20| 68 20 22 3d 3d 20 30 36 | 29 09 28 73 65 74 20 61 |h "== 06|).(set a|
|00003e30| 6e 73 20 4a 75 6e 65 29 | 0d 09 09 09 09 09 09 09 |ns June)|........|
|00003e40| 09 28 24 6d 74 68 20 22 | 3d 3d 20 30 37 29 09 28 |.($mth "|== 07).(|
|00003e50| 73 65 74 20 61 6e 73 20 | 4a 75 6c 79 29 0d 09 09 |set ans |July)...|
|00003e60| 09 09 09 09 09 09 28 24 | 6d 74 68 20 22 3d 3d 20 |......($|mth "== |
|00003e70| 30 38 29 09 28 73 65 74 | 20 61 6e 73 20 41 75 67 |08).(set| ans Aug|
|00003e80| 75 73 74 29 0d 09 09 09 | 09 09 09 09 09 28 24 6d |ust)....|.....($m|
|00003e90| 74 68 20 22 3d 3d 20 30 | 39 29 09 28 73 65 74 20 |th "== 0|9).(set |
|00003ea0| 61 6e 73 20 53 65 70 74 | 65 6d 62 65 72 29 0d 09 |ans Sept|ember)..|
|00003eb0| 09 09 09 09 09 09 09 28 | 24 6d 74 68 20 22 3d 3d |.......(|$mth "==|
|00003ec0| 20 31 30 29 09 28 73 65 | 74 20 61 6e 73 20 4f 63 | 10).(se|t ans Oc|
|00003ed0| 74 6f 62 65 72 29 0d 09 | 09 09 09 09 09 09 09 28 |tober)..|.......(|
|00003ee0| 24 6d 74 68 20 22 3d 3d | 20 31 31 29 09 28 73 65 |$mth "==| 11).(se|
|00003ef0| 74 20 61 6e 73 20 4e 6f | 76 65 6d 62 65 72 29 0d |t ans No|vember).|
|00003f00| 09 09 09 09 09 09 09 09 | 28 24 6d 74 68 20 22 3d |........|($mth "=|
|00003f10| 3d 20 31 32 29 09 28 73 | 65 74 20 61 6e 73 20 44 |= 12).(s|et ans D|
|00003f20| 65 63 65 6d 62 65 72 29 | 3b 0d 09 09 09 09 09 09 |ecember)|;.......|
|00003f30| 09 29 0d 09 09 28 28 25 | 31 29 20 22 3d 3d 20 79 |.)...((%|1) "== y|
|00003f40| 65 61 72 29 09 09 28 73 | 65 74 20 61 6e 73 20 31 |ear)..(s|et ans 1|
|00003f50| 39 28 29 7b 69 6e 64 65 | 78 53 74 72 69 6e 67 20 |9(){inde|xString |
|00003f60| 24 64 61 74 65 20 36 20 | 37 7d 29 3b 0d 09 65 63 |$date 6 |7});..ec|
|00003f70| 68 6f 20 24 61 6e 73 3b | 0d 09 00 00 40 00 0c 42 |ho $ans;|....@..B|
|00003f80| 61 63 6b 54 6f 50 6c 61 | 6e 6b 00 03 0b 0d 20 69 |ackToPla|nk.... i|
|00003f90| 66 20 7b 69 73 54 68 65 | 72 65 20 77 69 6e 64 6f |f {isThe|re windo|
|00003fa0| 77 20 49 6e 76 65 6e 74 | 6f 72 79 7d 20 28 6b 69 |w Invent|ory} (ki|
|00003fb0| 6c 6c 57 69 6e 64 6f 77 | 20 49 6e 76 65 6e 74 6f |llWindow| Invento|
|00003fc0| 72 79 29 3b 0d 20 49 6e | 69 74 69 61 6c 69 7a 61 |ry);. In|itializa|
|00003fd0| 74 69 6f 6e 33 3b 0d 20 | 49 6e 69 74 69 61 6c 69 |tion3;. |Initiali|
|00003fe0| 7a 61 74 69 6f 6e 34 3b | 0d 20 73 74 61 63 6b 20 |zation4;|. stack |
|00003ff0| 70 6f 73 74 73 74 61 63 | 6b 20 63 6c 65 61 72 3b |poststac|k clear;|
|00004000| 0d 20 73 65 74 20 48 65 | 6c 70 4e 61 6d 65 20 37 |. set He|lpName 7|
|00004010| 3b 0d 09 73 65 74 20 41 | 46 6c 61 67 20 35 3b 0d |;..set A|Flag 5;.|
|00004020| 09 73 65 74 20 43 4c 49 | 43 4b 43 4d 44 09 44 6f |.set CLI|CKCMD.Do|
|00004030| 43 6c 69 63 6b 50 3b 0d | 09 73 65 74 20 48 61 6e |ClickP;.|.set Han|
|00004040| 64 46 6c 61 67 20 66 61 | 6c 73 65 3b 0d 09 73 65 |dFlag fa|lse;..se|
|00004050| 74 44 72 61 77 53 74 61 | 74 65 20 2b 3b 0d 09 69 |tDrawSta|te +;..i|
|00004060| 66 20 28 7b 64 75 6d 70 | 54 79 70 65 20 31 33 7d |f ({dump|Type 13}|
|00004070| 20 22 21 3d 20 28 29 29 | 20 28 64 65 6c 65 74 65 | "!= ())| (delete|
|00004080| 20 28 6f 62 6a 65 63 74 | 20 64 69 6d 65 6e 73 69 | (object| dimensi|
|00004090| 6f 6e 29 29 3b 0d 09 64 | 65 6c 65 74 65 20 28 6c |on));..d|elete (l|
|000040a0| 61 79 65 72 20 33 31 29 | 3b 2a 2a 20 50 6f 73 74 |ayer 31)|;** Post|
|000040b0| 73 3b 0d 09 64 65 6c 65 | 74 65 20 28 6c 61 79 65 |s;..dele|te (laye|
|000040c0| 72 20 33 32 29 3b 2a 2a | 20 42 65 61 6d 73 3b 0d |r 32);**| Beams;.|
|000040d0| 09 64 65 6c 65 74 65 20 | 28 6c 61 79 65 72 20 33 |.delete |(layer 3|
|000040e0| 33 29 3b 2a 2a 20 52 69 | 6d 42 65 61 6d 20 56 65 |3);** Ri|mBeam Ve|
|000040f0| 72 74 3b 0d 09 64 65 6c | 65 74 65 20 28 6c 61 79 |rt;..del|ete (lay|
|00004100| 65 72 20 33 34 29 3b 2a | 2a 20 52 69 6d 42 65 61 |er 34);*|* RimBea|
|00004110| 6d 20 48 6f 72 69 7a 3b | 0d 09 64 65 6c 65 74 65 |m Horiz;|..delete|
|00004120| 20 28 6c 61 79 65 72 20 | 33 35 29 3b 2a 2a 20 4a | (layer |35);** J|
|00004130| 6f 69 73 74 73 3b 0d 09 | 64 65 6c 65 74 65 20 28 |oists;..|delete (|
|00004140| 6c 61 79 65 72 20 33 36 | 29 3b 2a 2a 20 48 61 6e |layer 36|);** Han|
|00004150| 64 72 61 69 6c 73 3b 0d | 09 64 65 6c 65 74 65 20 |drails;.|.delete |
|00004160| 28 6c 61 79 65 72 20 33 | 37 29 3b 2a 2a 20 53 74 |(layer 3|7);** St|
|00004170| 61 69 72 73 3b 0d 09 64 | 65 6c 65 74 65 20 28 6c |airs;..d|elete (l|
|00004180| 61 79 65 72 20 33 38 29 | 3b 2a 2a 20 53 74 65 70 |ayer 38)|;** Step|
|00004190| 73 3b 0d 09 64 65 6c 65 | 74 65 20 28 6c 61 79 65 |s;..dele|te (laye|
|000041a0| 72 20 33 39 29 3b 2a 2a | 20 50 6c 61 6e 6b 73 3b |r 39);**| Planks;|
|000041b0| 0d 09 69 6e 70 75 74 42 | 6f 6d 20 72 65 73 65 74 |..inputB|om reset|
|000041c0| 3b 0d 09 73 65 74 44 72 | 61 77 53 74 61 74 65 20 |;..setDr|awState |
|000041d0| 2d 3b 0d 09 69 66 20 7b | 69 73 54 68 65 72 65 20 |-;..if {|isThere |
|000041e0| 77 69 6e 64 6f 77 20 50 | 65 72 73 70 65 63 74 69 |window P|erspecti|
|000041f0| 76 65 7d 20 28 72 65 6e | 64 45 6e 64 29 3b 0d 09 |ve} (ren|dEnd);..|
|00004200| 53 68 61 70 65 52 65 63 | 6f 76 65 72 3b 0d 09 50 |ShapeRec|over;..P|
|00004210| 6c 61 6e 56 69 65 77 3b | 0d 09 73 65 74 20 5a 6f |lanView;|..set Zo|
|00004220| 6e 65 4c 69 73 74 20 28 | 29 3b 0d 09 50 6c 61 6e |neList (|);..Plan|
|00004230| 6b 73 3b 0d 09 73 65 74 | 55 70 64 61 74 65 20 50 |ks;..set|Update P|
|00004240| 6c 61 6e 20 6f 6e 20 56 | 69 65 77 55 70 64 61 74 |lan on V|iewUpdat|
|00004250| 65 3b 0d 09 73 65 74 20 | 44 45 43 4b 50 52 49 43 |e;..set |DECKPRIC|
|00004260| 45 20 28 29 3b 0d 09 77 | 61 6c 6c 79 31 20 3d 20 |E ();..w|ally1 = |
|00004270| 36 30 3b 0d 09 77 61 6c | 6c 79 32 20 3d 20 2d 31 |60;..wal|ly2 = -1|
|00004280| 3b 0d 20 74 6f 74 61 6c | 70 6c 61 6e 6b 61 72 65 |;. total|plankare|
|00004290| 61 20 3d 20 30 3b 0d 00 | 00 40 00 09 53 65 74 42 |a = 0;..|.@..SetB|
|000042a0| 72 65 61 6b 00 00 70 0d | 20 69 66 20 28 25 31 20 |reak..p.| if (%1 |
|000042b0| 22 3d 3d 20 6f 6e 29 20 | 28 6c 6f 63 61 6c 20 6e |"== on) |(local n|
|000042c0| 75 6c 6c 20 7b 73 79 73 | 74 65 6d 20 73 79 73 74 |ull {sys|tem syst|
|000042d0| 65 6d 26 7e 73 79 73 41 | 4c 4c 4f 57 42 52 45 41 |em&~sysA|LLOWBREA|
|000042e0| 4b 7d 29 0d 20 65 6c 73 | 65 20 28 6c 6f 63 61 6c |K}). els|e (local|
|000042f0| 20 6e 75 6c 6c 20 7b 73 | 79 73 74 65 6d 20 73 79 | null {s|ystem sy|
|00004300| 73 74 65 6d 7c 73 79 73 | 41 4c 4c 4f 57 42 52 45 |stem|sys|ALLOWBRE|
|00004310| 41 4b 7d 29 3b 0d 00 00 | 40 00 09 43 68 61 69 72 |AK});...|@..Chair|
|00004320| 42 75 74 00 00 bd 0d 09 | 69 66 20 7b 69 73 54 68 |But.....|if {isTh|
|00004330| 65 72 65 20 70 69 63 74 | 75 72 65 20 43 68 61 69 |ere pict|ure Chai|
|00004340| 72 57 7d 20 28 29 20 65 | 6c 73 65 20 52 65 61 64 |rW} () e|lse Read|
|00004350| 43 68 61 69 72 3b 0d 09 | 42 4c 58 20 3d 20 31 30 |Chair;..|BLX = 10|
|00004360| 3b 0d 09 42 4c 59 20 3d | 20 33 35 3b 0d 20 43 6f |;..BLY =| 35;. Co|
|00004370| 6e 55 70 64 61 74 65 32 | 3b 0d 09 73 65 74 44 72 |nUpdate2|;..setDr|
|00004380| 61 77 53 63 72 65 65 6e | 20 43 6f 6e 74 72 6f 6c |awScreen| Control|
|00004390| 73 3b 0d 09 4d 61 6b 65 | 46 42 75 74 20 42 4c 58 |s;..Make|FBut BLX|
|000043a0| 2d 35 20 42 4c 59 2d 37 | 20 24 46 75 72 6e 3b 0d |-5 BLY-7| $Furn;.|
|000043b0| 09 73 68 6f 77 46 72 65 | 65 42 75 74 74 6f 6e 73 |.showFre|eButtons|
|000043c0| 20 43 6f 6e 74 72 6f 6c | 73 3b 0d 09 73 68 6f 77 | Control|s;..show|
|000043d0| 46 72 65 65 42 75 74 74 | 6f 6e 73 20 50 6c 61 6e |FreeButt|ons Plan|
|000043e0| 3b 0d 00 00 40 00 0c 44 | 72 61 77 52 69 6d 42 65 |;...@..D|rawRimBe|
|000043f0| 61 6d 00 04 7c 0d 20 6c | 6f 63 61 6c 56 61 72 20 |am..|. l|ocalVar |
|00004400| 76 65 63 74 6f 72 20 52 | 42 44 65 70 74 68 20 54 |vector R|BDepth T|
|00004410| 65 6d 70 31 20 54 65 6d | 70 32 20 54 65 6d 70 33 |emp1 Tem|p2 Temp3|
|00004420| 20 50 74 53 74 20 50 74 | 45 6e 64 20 50 74 4f 66 | PtSt Pt|End PtOf|
|00004430| 66 3b 0d 20 6c 6f 63 61 | 6c 56 61 72 20 73 63 61 |f;. loca|lVar sca|
|00004440| 6c 61 72 20 54 65 6d 70 | 44 20 52 69 6d 54 79 70 |lar Temp|D RimTyp|
|00004450| 65 3b 0d 20 52 57 20 3d | 20 52 42 2f 32 3b 0d 20 |e;. RW =| RB/2;. |
|00004460| 54 65 6d 70 31 20 3d 20 | 7b 73 74 61 63 6b 20 53 |Temp1 = |{stack S|
|00004470| 68 61 70 65 53 74 61 63 | 6b 25 31 20 70 6f 70 7d |hapeStac|k%1 pop}|
|00004480| 2b 5b 30 2c 30 2c 45 6c | 65 76 25 31 2d 50 6c 61 |+[0,0,El|ev%1-Pla|
|00004490| 6e 6b 54 68 5d 3b 0d 20 | 46 69 72 73 74 20 3d 20 |nkTh];. |First = |
|000044a0| 54 65 6d 70 31 3b 0d 20 | 54 65 6d 70 44 20 3d 20 |Temp1;. |TempD = |
|000044b0| 7b 73 74 61 63 6b 20 53 | 68 61 70 65 53 74 61 63 |{stack S|hapeStac|
|000044c0| 6b 25 31 20 64 65 70 74 | 68 7d 3b 0d 20 52 42 44 |k%1 dept|h};. RBD|
|000044d0| 65 70 74 68 20 3d 20 5b | 30 2c 30 2c 52 44 5d 3b |epth = [|0,0,RD];|
|000044e0| 0d 20 66 6f 72 20 69 20 | 3d 20 31 20 74 6f 20 54 |. for i |= 1 to T|
|000044f0| 65 6d 70 44 2b 31 20 28 | 0d 20 20 69 66 20 28 69 |empD+1 (|. if (i|
|00004500| 20 3d 3d 20 31 29 20 28 | 0d 20 20 20 63 6f 6c 6f | == 1) (|. colo|
|00004510| 72 20 63 75 72 72 65 6e | 74 20 62 6c 61 63 6b 3b |r curren|t black;|
|00004520| 0d 20 20 20 52 69 6d 54 | 79 70 65 20 3d 20 74 72 |. RimT|ype = tr|
|00004530| 75 65 3b 0d 20 20 20 6c | 61 79 65 72 20 63 75 72 |ue;. l|ayer cur|
|00004540| 72 65 6e 74 20 33 33 3b | 0d 20 20 20 54 65 6d 70 |rent 33;|. Temp|
|00004550| 32 20 3d 20 7b 73 74 61 | 63 6b 20 53 68 61 70 65 |2 = {sta|ck Shape|
|00004560| 53 74 61 63 6b 25 31 20 | 70 6f 70 7d 2b 5b 30 2c |Stack%1 |pop}+[0,|
|00004570| 30 2c 45 6c 65 76 25 31 | 2d 50 6c 61 6e 6b 54 68 |0,Elev%1|-PlankTh|
|00004580| 5d 3b 0d 20 20 20 54 65 | 6d 70 33 20 3d 20 7b 73 |];. Te|mp3 = {s|
|00004590| 74 61 63 6b 20 53 68 61 | 70 65 53 74 61 63 6b 25 |tack Sha|peStack%|
|000045a0| 31 20 70 6f 70 7d 2b 5b | 30 2c 30 2c 45 6c 65 76 |1 pop}+[|0,0,Elev|
|000045b0| 25 31 2d 50 6c 61 6e 6b | 54 68 5d 3b 0d 20 20 20 |%1-Plank|Th];. |
|000045c0| 69 66 20 28 7b 3f b0 79 | 28 54 65 6d 70 33 29 7d |if ({?.y|(Temp3)}|
|000045d0| 20 3c 20 7b 3f b0 79 28 | 54 65 6d 70 32 29 7d 29 | < {?.y(|Temp2)})|
|000045e0| 20 28 0d 20 20 20 20 61 | 64 64 43 75 72 50 74 20 | (. a|ddCurPt |
|000045f0| 54 65 6d 70 31 2b 5b 52 | 57 2c 30 2c 30 5d 20 54 |Temp1+[R|W,0,0] T|
|00004600| 65 6d 70 31 2b 5b 52 57 | 2c 30 2c 30 5d 2d 52 42 |emp1+[RW|,0,0]-RB|
|00004610| 44 65 70 74 68 20 54 65 | 6d 70 31 2b 5b 52 57 2c |Depth Te|mp1+[RW,|
|00004620| 2d 52 57 2c 30 5d 20 54 | 65 6d 70 32 3b 0d 20 20 |-RW,0] T|emp2;. |
|00004630| 20 20 50 74 53 74 20 3d | 20 54 65 6d 70 31 2b 5b | PtSt =| Temp1+[|
|00004640| 52 57 2c 30 2c 30 5d 3b | 0d 20 20 20 20 50 74 45 |RW,0,0];|. PtE|
|00004650| 6e 64 20 3d 20 54 65 6d | 70 32 3b 0d 20 20 20 20 |nd = Tem|p2;. |
|00004660| 50 74 4f 66 66 20 3d 20 | 54 65 6d 70 31 2b 5b 52 |PtOff = |Temp1+[R|
|00004670| 57 2c 2d 52 57 2c 30 5d | 29 0d 20 20 20 65 6c 73 |W,-RW,0]|). els|
|00004680| 65 20 28 0d 20 20 20 20 | 61 64 64 43 75 72 50 74 |e (. |addCurPt|
|00004690| 20 54 65 6d 70 31 2b 5b | 52 57 2c 30 2c 30 5d 20 | Temp1+[|RW,0,0] |
|000046a0| 54 65 6d 70 31 2d 52 42 | 44 65 70 74 68 2b 5b 52 |Temp1-RB|Depth+[R|
|000046b0| 57 2c 30 2c 30 5d 20 54 | 65 6d 70 31 2b 5b 52 57 |W,0,0] T|emp1+[RW|
|000046c0| 2c 2d 52 57 2c 30 5d 20 | 54 65 6d 70 32 2b 5b 52 |,-RW,0] |Temp2+[R|
|000046d0| 57 2c 30 2c 30 5d 3b 0d | 20 20 20 20 50 74 53 74 |W,0,0];.| PtSt|
|000046e0| 20 3d 20 54 65 6d 70 31 | 2b 5b 52 57 2c 30 2c 30 | = Temp1|+[RW,0,0|
|000046f0| 5d 3b 0d 20 20 20 20 50 | 74 45 6e 64 20 3d 20 54 |];. P|tEnd = T|
|00004700| 65 6d 70 32 2b 5b 52 57 | 2c 30 2c 30 5d 3b 0d 20 |emp2+[RW|,0,0];. |
|00004710| 20 20 20 50 74 4f 66 66 | 20 3d 20 54 65 6d 70 31 | PtOff| = Temp1|
|00004720| 2b 5b 52 57 2c 2d 52 57 | 2c 30 5d 3b 0d 20 20 20 |+[RW,-RW|,0];. |
|00004730| 29 3b 0d 20 20 20 44 72 | 61 77 52 69 6d 56 6f 6c |);. Dr|awRimVol|
|00004740| 73 20 52 69 6d 54 79 70 | 65 20 50 74 53 74 20 50 |s RimTyp|e PtSt P|
|00004750| 74 45 6e 64 20 50 74 4f | 66 66 3b 0d 20 20 29 20 |tEnd PtO|ff;. ) |
|00004760| 65 6c 73 65 20 28 0d 20 | 20 20 69 66 20 7b 4f 64 |else (. | if {Od|
|00004770| 64 45 76 65 6e 20 32 20 | 69 7d 20 56 65 72 74 52 |dEven 2 |i} VertR|
|00004780| 42 20 65 6c 73 65 20 48 | 6f 72 69 7a 52 42 3b 0d |B else H|orizRB;.|
|00004790| 20 20 20 54 65 6d 70 31 | 20 3d 20 54 65 6d 70 32 | Temp1| = Temp2|
|000047a0| 3b 0d 20 20 20 54 65 6d | 70 32 20 3d 20 54 65 6d |;. Tem|p2 = Tem|
|000047b0| 70 33 3b 0d 20 20 20 69 | 66 20 28 69 20 3d 3d 20 |p3;. i|f (i == |
|000047c0| 54 65 6d 70 44 2b 31 29 | 20 28 29 20 65 6c 73 65 |TempD+1)| () else|
|000047d0| 20 28 0d 20 20 20 20 69 | 66 20 28 69 20 3d 3d 20 | (. i|f (i == |
|000047e0| 54 65 6d 70 44 29 20 28 | 54 65 6d 70 33 20 3d 20 |TempD) (|Temp3 = |
|000047f0| 46 69 72 73 74 29 0d 20 | 20 20 20 65 6c 73 65 20 |First). | else |
|00004800| 28 54 65 6d 70 33 20 3d | 20 7b 73 74 61 63 6b 20 |(Temp3 =| {stack |
|00004810| 53 68 61 70 65 53 74 61 | 63 6b 25 31 20 70 6f 70 |ShapeSta|ck%1 pop|
|00004820| 7d 2b 5b 30 2c 30 2c 45 | 6c 65 76 25 31 2d 50 6c |}+[0,0,E|lev%1-Pl|
|00004830| 61 6e 6b 54 68 5d 29 3b | 0d 20 20 20 29 3b 0d 20 |ankTh]);|. );. |
|00004840| 20 44 72 61 77 52 69 6d | 56 6f 6c 73 20 52 69 6d | DrawRim|Vols Rim|
|00004850| 54 79 70 65 20 50 74 53 | 74 20 50 74 45 6e 64 20 |Type PtS|t PtEnd |
|00004860| 50 74 4f 66 66 3b 0d 20 | 20 29 3b 0d 20 29 3b 0d |PtOff;. | );. );.|
|00004870| 00 00 40 00 09 52 65 64 | 6f 4c 69 6e 65 00 01 df |..@..Red|oLine...|
|00004880| 0d 20 69 66 20 28 4c 69 | 6e 65 46 6c 61 67 20 3d |. if (Li|neFlag =|
|00004890| 3d 20 30 29 20 28 67 6f | 4c 6e 20 61 6c 6c 20 28 |= 0) (go|Ln all (|
|000048a0| 30 29 3b 64 65 6c 65 74 | 65 20 63 75 72 72 65 6e |0);delet|e curren|
|000048b0| 74 3b 45 6e 64 4c 69 6e | 65 3b 73 79 73 42 65 65 |t;EndLin|e;sysBee|
|000048c0| 70 29 20 65 6c 73 65 20 | 28 0d 20 20 6f 6c 64 20 |p) else |(. old |
|000048d0| 3d 20 63 75 72 72 65 6e | 74 20 28 30 29 3b 0d 20 |= curren|t (0);. |
|000048e0| 20 67 6f 4c 6e 20 61 6c | 6c 20 28 30 29 3b 64 65 | goLn al|l (0);de|
|000048f0| 6c 65 74 65 20 63 75 72 | 72 65 6e 74 3b 20 0d 6e |lete cur|rent; .n|
|00004900| 6f 6f 70 20 20 55 6e 64 | 6f 53 75 70 20 24 44 65 |oop Und|oSup $De|
|00004910| 63 6b 49 6e 63 3b 0d 20 | 20 6c 61 73 74 20 3d 20 |ckInc;. | last = |
|00004920| 7b 73 74 61 63 6b 20 34 | 31 20 6c 6f 6f 6b 20 31 |{stack 4|1 look 1|
|00004930| 7d 3b 0d 20 20 73 65 74 | 43 6f 6e 74 72 6f 6c 42 |};. set|ControlB|
|00004940| 6f 78 20 58 20 7b 3f b0 | 78 28 6c 61 73 74 29 7d |ox X {?.|x(last)}|
|00004950| 20 59 20 7b 3f b0 79 28 | 6c 61 73 74 29 7d 20 5a | Y {?.y(|last)} Z|
|00004960| 20 7b 3f b0 7a 28 6c 61 | 73 74 29 7d 3b 0d 20 20 | {?.z(la|st)};. |
|00004970| 69 66 20 28 48 6f 72 69 | 7a 20 3d 3d 20 31 29 20 |if (Hori|z == 1) |
|00004980| 28 0d 20 20 20 69 66 20 | 7b 4f 64 64 45 76 65 6e |(. if |{OddEven|
|00004990| 20 31 20 4c 69 6e 65 46 | 6c 61 67 7d 20 28 6e 6f | 1 LineF|lag} (no|
|000049a0| 6f 70 20 7b 73 6e 61 70 | 4d 6f 64 65 20 30 78 30 |op {snap|Mode 0x0|
|000049b0| 32 30 30 7d 29 0d 20 20 | 20 65 6c 73 65 20 28 6e |200}). | else (n|
|000049c0| 6f 6f 70 20 7b 73 6e 61 | 70 4d 6f 64 65 20 30 78 |oop {sna|pMode 0x|
|000049d0| 30 31 30 30 7d 29 29 0d | 20 20 65 6c 73 65 20 28 |0100})).| else (|
|000049e0| 0d 20 20 20 69 66 20 7b | 4f 64 64 45 76 65 6e 20 |. if {|OddEven |
|000049f0| 31 20 4c 69 6e 65 46 6c | 61 67 7d 20 28 6e 6f 6f |1 LineFl|ag} (noo|
|00004a00| 70 20 7b 73 6e 61 70 4d | 6f 64 65 20 30 78 30 31 |p {snapM|ode 0x01|
|00004a10| 30 30 7d 29 0d 20 20 20 | 65 6c 73 65 20 28 6e 6f |00}). |else (no|
|00004a20| 6f 70 20 7b 73 6e 61 70 | 4d 6f 64 65 20 30 78 30 |op {snap|Mode 0x0|
|00004a30| 32 30 30 7d 29 0d 20 20 | 29 3b 0d 20 20 52 75 62 |200}). |);. Rub|
|00004a40| 53 65 74 20 6c 61 73 74 | 3b 0d 20 20 53 6e 61 70 |Set last|;. Snap|
|00004a50| 50 74 20 6f 6c 64 20 36 | 3b 0d 20 29 3b 0d 00 00 |Pt old 6|;. );...|
|00004a60| 40 00 09 44 72 61 67 44 | 6f 6f 72 00 01 ca 0d 20 |@..DragD|oor.... |
|00004a70| 73 65 74 44 72 61 77 53 | 63 72 65 65 6e 20 50 6c |setDrawS|creen Pl|
|00004a80| 61 6e 3b 0d 20 64 72 61 | 77 50 69 63 20 48 57 61 |an;. dra|wPic HWa|
|00004a90| 6c 6c 20 32 20 35 20 31 | 30 20 34 35 35 3b 0d 20 |ll 2 5 1|0 455;. |
|00004aa0| 70 65 6e 4d 6f 64 65 20 | 50 6c 61 6e 20 31 30 3b |penMode |Plan 10;|
|00004ab0| 0d 20 70 65 6e 53 69 7a | 65 20 38 20 38 3b 0d 20 |. penSiz|e 8 8;. |
|00004ac0| 52 61 62 20 3d 20 31 35 | 3b 0d 20 77 68 69 6c 65 |Rab = 15|;. while|
|00004ad0| 20 28 7b 69 6e 64 65 78 | 20 32 20 7b 67 65 74 4d | ({index| 2 {getM|
|00004ae0| 6f 75 73 65 7d 7d 20 3d | 3d 20 31 29 20 64 6f 20 |ouse}} =|= 1) do |
|00004af0| 28 0d 20 20 69 66 20 28 | 7b 69 6e 64 65 78 20 33 |(. if (|{index 3|
|00004b00| 20 7b 67 65 74 4d 6f 75 | 73 65 7d 7d 20 22 3d 3d | {getMou|se}} "==|
|00004b10| 20 50 6c 61 6e 29 20 28 | 0d 20 20 20 4e 65 77 4d | Plan) (|. NewM|
|00004b20| 6f 75 73 65 20 3d 20 7b | 69 6e 64 65 78 20 31 20 |ouse = {|index 1 |
|00004b30| 7b 67 65 74 4d 6f 75 73 | 65 7d 7d 3b 0d 20 20 20 |{getMous|e}};. |
|00004b40| 69 66 20 28 4e 65 77 4d | 6f 75 73 65 20 3c 3d 20 |if (NewM|ouse <= |
|00004b50| 34 32 34 29 20 28 0d 20 | 20 20 20 69 66 20 28 4e |424) (. | if (N|
|00004b60| 65 77 4d 6f 75 73 65 20 | 3e 3d 20 32 38 29 20 28 |ewMouse |>= 28) (|
|00004b70| 0d 20 20 20 20 20 20 52 | 61 62 20 3d 20 4e 65 77 |. R|ab = New|
|00004b80| 4d 6f 75 73 65 2d 34 3b | 44 72 61 77 44 6f 6f 72 |Mouse-4;|DrawDoor|
|00004b90| 42 6f 78 3b 0d 20 20 20 | 20 29 20 65 6c 73 65 20 |Box;. | ) else |
|00004ba0| 28 52 61 62 20 3d 20 32 | 38 3b 44 72 61 77 44 6f |(Rab = 2|8;DrawDo|
|00004bb0| 6f 72 42 6f 78 29 3b 0d | 20 20 20 29 20 65 6c 73 |orBox);.| ) els|
|00004bc0| 65 20 28 52 61 62 20 3d | 20 34 32 34 3b 44 72 61 |e (Rab =| 424;Dra|
|00004bd0| 77 44 6f 6f 72 42 6f 78 | 29 3b 0d 20 20 29 20 65 |wDoorBox|);. ) e|
|00004be0| 6c 73 65 20 28 73 79 73 | 42 65 65 70 20 2e 31 29 |lse (sys|Beep .1)|
|00004bf0| 3b 0d 20 29 3b 0d 20 44 | 4c 6f 63 20 3d 20 4e 65 |;. );. D|Loc = Ne|
|00004c00| 77 4d 6f 75 73 65 2d 32 | 38 3b 0d 20 70 65 6e 53 |wMouse-2|8;. penS|
|00004c10| 69 7a 65 20 31 20 31 3b | 0d 20 70 65 6e 4d 6f 64 |ize 1 1;|. penMod|
|00004c20| 65 20 50 6c 61 6e 20 31 | 3b 0d 20 56 69 65 77 55 |e Plan 1|;. ViewU|
|00004c30| 70 64 61 74 65 3b 0d 00 | 00 40 00 0f 53 74 61 72 |pdate;..|.@..Star|
|00004c40| 74 52 65 6e 64 41 67 61 | 69 6e 00 01 e6 0d 20 73 |tRendAga|in.... s|
|00004c50| 65 74 44 72 61 77 53 63 | 72 65 65 6e 20 50 65 72 |etDrawSc|reen Per|
|00004c60| 73 70 65 63 74 69 76 65 | 3b 0d 20 69 66 20 7b 69 |spective|;. if {i|
|00004c70| 73 54 68 65 72 65 20 66 | 69 6c 65 20 44 65 63 6b |sThere f|ile Deck|
|00004c80| 57 61 69 74 7d 20 28 72 | 65 61 64 50 69 63 74 75 |Wait} (r|eadPictu|
|00004c90| 72 65 20 24 53 75 70 50 | 61 74 68 28 44 65 63 6b |re $SupP|ath(Deck|
|00004ca0| 57 61 69 74 29 20 73 63 | 72 65 65 6e 20 79 65 73 |Wait) sc|reen yes|
|00004cb0| 20 6e 6f 77 20 24 53 75 | 70 50 61 74 68 28 44 65 | now $Su|pPath(De|
|00004cc0| 63 6b 57 61 69 74 29 3b | 0d 20 20 64 72 61 77 50 |ckWait);|. drawP|
|00004cd0| 69 63 20 44 65 63 6b 57 | 61 69 74 20 30 20 31 39 |ic DeckW|ait 0 19|
|00004ce0| 20 34 39 31 20 34 38 30 | 29 3b 0d 20 69 66 20 28 | 491 480|);. if (|
|00004cf0| 42 65 73 74 20 3d 3d 20 | 74 72 75 65 29 20 28 50 |Best == |true) (P|
|00004d00| 61 73 73 20 72 65 6e 64 | 5a 6f 6e 65 20 31 30 30 |ass rend|Zone 100|
|00004d10| 20 24 5a 6f 6e 65 4c 69 | 73 74 29 3b 0d 20 6e 6f | $ZoneLi|st);. no|
|00004d20| 6f 70 20 7b 76 6f 6c 73 | 32 52 65 6e 64 20 61 6c |op {vols|2Rend al|
|00004d30| 6c 20 31 30 30 7d 3b 0d | 20 52 65 6e 64 55 70 3b |l 100};.| RendUp;|
|00004d40| 0d 20 72 65 6e 64 56 69 | 65 77 20 31 20 35 35 20 |. rendVi|ew 1 55 |
|00004d50| 35 35 3b 0d 20 72 65 6e | 64 44 69 72 20 35 35 20 |55;. ren|dDir 55 |
|00004d60| 35 35 3b 0d 20 73 65 74 | 20 74 65 6d 70 20 7b 72 |55;. set| temp {r|
|00004d70| 65 6e 64 43 74 72 20 2d | 66 7d 3b 0d 20 73 65 74 |endCtr -|f};. set|
|00004d80| 20 74 65 6d 70 20 7b 69 | 6e 64 65 78 20 31 20 24 | temp {i|ndex 1 $|
|00004d90| 74 65 6d 70 7d 3b 0d 20 | 72 65 6e 64 53 63 61 6c |temp};. |rendScal|
|00004da0| 65 20 5a 4f 4f 4d 2a 2e | 35 20 33 30 30 20 2d 31 |e ZOOM*.|5 300 -1|
|00004db0| 30 30 3b 0d 20 52 65 6e | 64 5a 6f 6f 6d 20 3d 20 |00;. Ren|dZoom = |
|00004dc0| 5a 4f 4f 4d 2a 2e 35 3b | 0d 20 72 65 6e 64 4c 69 |ZOOM*.5;|. rendLi|
|00004dd0| 67 68 74 20 32 20 31 20 | 34 3b 0d 20 72 65 6e 64 |ght 2 1 |4;. rend|
|00004de0| 5a 6f 6e 65 53 6f 72 74 | 20 30 78 33 31 32 30 3b |ZoneSort| 0x3120;|
|00004df0| 0d 20 69 66 20 7b 69 73 | 54 68 65 72 65 20 70 69 |. if {is|There pi|
|00004e00| 63 74 75 72 65 20 44 65 | 63 6b 57 61 69 74 7d 20 |cture De|ckWait} |
|00004e10| 28 6b 69 6c 6c 50 69 63 | 20 44 65 63 6b 57 61 69 |(killPic| DeckWai|
|00004e20| 74 29 3b 0d 20 72 65 6e | 64 44 72 61 77 20 2d 73 |t);. ren|dDraw -s|
|00004e30| 3b 0d 00 00 40 00 09 41 | 75 74 6f 48 61 6e 64 00 |;...@..A|utoHand.|
|00004e40| 01 24 0d 20 69 66 20 28 | 41 75 74 6f 48 61 6e 64 |.$. if (|AutoHand|
|00004e50| 20 3d 3d 20 31 29 20 28 | 0d 20 20 41 75 74 6f 48 | == 1) (|. AutoH|
|00004e60| 61 6e 64 20 3d 20 30 3b | 0d 20 20 73 65 74 20 48 |and = 0;|. set H|
|00004e70| 61 6e 64 20 66 61 6c 73 | 65 3b 0d 20 20 64 65 6c |and fals|e;. del|
|00004e80| 65 74 65 20 28 6c 61 79 | 65 72 20 33 36 29 3b 0d |ete (lay|er 36);.|
|00004e90| 20 20 50 6c 61 6e 56 69 | 65 77 3b 0d 20 29 20 65 | PlanVi|ew;. ) e|
|00004ea0| 6c 73 65 20 28 0d 20 20 | 41 75 74 6f 48 61 6e 64 |lse (. |AutoHand|
|00004eb0| 20 3d 20 31 3b 0d 20 20 | 73 65 74 20 48 61 6e 64 | = 1;. |set Hand|
|00004ec0| 20 74 72 75 65 3b 0d 20 | 20 53 74 65 70 44 72 6f | true;. | StepDro|
|00004ed0| 70 33 20 3d 20 45 6c 65 | 76 33 2d 45 6c 65 76 32 |p3 = Ele|v3-Elev2|
|00004ee0| 3b 0d 20 20 53 74 65 70 | 44 72 6f 70 32 20 3d 20 |;. Step|Drop2 = |
|00004ef0| 45 6c 65 76 32 2d 45 6c | 65 76 31 3b 0d 20 20 64 |Elev2-El|ev1;. d|
|00004f00| 65 6c 65 74 65 20 28 6c | 61 79 65 72 20 33 36 29 |elete (l|ayer 36)|
|00004f10| 3b 0d 20 20 73 65 74 20 | 43 4c 49 43 4b 43 4d 44 |;. set |CLICKCMD|
|00004f20| 09 6e 6f 6f 70 3b 0d 20 | 20 70 72 65 63 69 73 69 |.noop;. | precisi|
|00004f30| 6f 6e 20 30 3b 0d 20 20 | 66 6f 72 20 6b 20 3d 20 |on 0;. |for k = |
|00004f40| 31 20 74 6f 20 44 65 63 | 6b 49 6e 63 20 28 45 78 |1 to Dec|kInc (Ex|
|00004f50| 74 72 61 63 74 49 50 74 | 73 20 7b 3f 6b 7d 29 3b |tractIPt|s {?k});|
|00004f60| 0d 20 29 3b 0d 00 00 40 | 00 09 48 61 6e 64 41 75 |. );...@|..HandAu|
|00004f70| 74 6f 00 00 72 0d 20 50 | 6c 61 63 65 48 61 6e 32 |to..r. P|laceHan2|
|00004f80| 20 49 6e 20 31 3b 0d 20 | 6d 6f 76 65 54 6f 20 32 | In 1;. |moveTo 2|
|00004f90| 31 20 31 32 30 3b 64 72 | 61 77 53 74 72 69 6e 67 |1 120;dr|awString|
|00004fa0| 20 28 41 75 74 6f 29 3b | 0d 73 79 73 42 65 65 70 | (Auto);|.sysBeep|
|00004fb0| 3b 0d 20 50 6c 61 63 65 | 48 61 6e 32 20 4f 75 74 |;. Place|Han2 Out|
|00004fc0| 20 31 3b 0d 20 6d 6f 76 | 65 54 6f 20 32 31 20 31 | 1;. mov|eTo 21 1|
|00004fd0| 32 30 3b 64 72 61 77 53 | 74 72 69 6e 67 20 28 41 |20;drawS|tring (A|
|00004fe0| 75 74 6f 29 3b 0d 00 00 | 40 00 0c 46 69 6e 64 49 |uto);...|@..FindI|
|00004ff0| 6e 76 44 65 73 63 00 00 | 26 0d 20 46 69 6e 64 49 |nvDesc..|&. FindI|
|00005000| 6e 76 44 65 73 63 32 20 | 25 31 20 28 25 32 29 3b |nvDesc2 |%1 (%2);|
|00005010| 0d 20 65 63 68 6f 20 24 | 64 65 73 63 3b 0d 00 00 |. echo $|desc;...|
|00005020| 40 00 09 50 6c 61 6e 6b | 42 4f 4d 00 02 f1 0d 09 |@..Plank|BOM.....|
|00005030| 6c 6f 63 61 6c 56 61 72 | 20 73 63 61 6c 61 72 20 |localVar| scalar |
|00005040| 70 6c 42 4f 4d 77 64 20 | 70 6c 42 4f 4d 68 74 20 |plBOMwd |plBOMht |
|00005050| 63 6f 75 6e 74 20 61 72 | 65 61 31 20 61 72 65 61 |count ar|ea1 area|
|00005060| 32 20 70 6c 61 6e 6b 61 | 72 65 61 20 6c 65 6e 20 |2 planka|rea len |
|00005070| 77 69 64 20 6d 65 6d 73 | 7a 3b 0d 09 70 6c 42 4f |wid mems|z;..plBO|
|00005080| 4d 68 74 20 3d 20 7b 43 | 65 69 6c 69 6e 67 20 50 |Mht = {C|eiling P|
|00005090| 57 20 31 32 7d 3b 0d 20 | 50 6c 61 6e 6b 41 72 65 |W 12};. |PlankAre|
|000050a0| 61 25 31 20 3d 20 50 6c | 61 6e 6b 41 72 65 61 25 |a%1 = Pl|ankArea%|
|000050b0| 31 2a 31 2e 31 3b 0d 09 | 74 6f 74 61 6c 70 6c 61 |1*1.1;..|totalpla|
|000050c0| 6e 6b 61 72 65 61 20 3d | 20 50 6c 61 6e 6b 41 72 |nkarea =| PlankAr|
|000050d0| 65 61 25 31 2b 74 6f 74 | 61 6c 70 6c 61 6e 6b 61 |ea%1+tot|alplanka|
|000050e0| 72 65 61 3b 0d 09 64 70 | 6c 42 4f 4d 63 6e 74 20 |rea;..dp|lBOMcnt |
|000050f0| 3d 20 7b 3f 31 2b 74 6f | 74 61 6c 70 6c 61 6e 6b |= {?1+to|talplank|
|00005100| 61 72 65 61 2f 28 31 36 | 2a 70 6c 42 4f 4d 68 74 |area/(16|*plBOMht|
|00005110| 2f 31 32 29 7d 3b 0d 09 | 6d 65 6d 73 7a 20 3d 20 |/12)};..|memsz = |
|00005120| 7b 3f 3a 78 20 70 6c 42 | 4f 4d 68 74 7d 3b 0d 20 |{?:x plB|OMht};. |
|00005130| 69 66 20 28 50 44 20 3d | 3d 20 31 29 20 28 70 6c |if (PD =|= 1) (pl|
|00005140| 42 4f 4d 77 64 20 3d 20 | 35 2f 34 3b 0d 09 20 69 |BOMwd = |5/4;.. i|
|00005150| 6e 70 75 74 42 4f 4d 20 | 62 6f 78 20 70 6c 61 6e |nputBOM |box plan|
|00005160| 6b 42 4f 4d 74 79 70 65 | 20 30 78 30 31 30 36 20 |kBOMtype| 0x0106 |
|00005170| 31 36 7d 0d 20 29 20 65 | 6c 73 65 09 28 70 6c 42 |16}. ) e|lse.(plB|
|00005180| 4f 4d 77 64 20 3d 20 7b | 43 65 69 6c 69 6e 67 20 |OMwd = {|Ceiling |
|00005190| 50 6c 61 6e 6b 54 68 20 | 31 32 7d 3b 0d 20 09 6d |PlankTh |12};. .m|
|000051a0| 65 6d 73 7a 20 3d 20 7b | 3f 3f 20 6d 65 6d 73 7a |emsz = {|?? memsz|
|000051b0| 20 7c 20 28 70 6c 42 4f | 4d 77 64 20 3c 3c 20 38 | | (plBO|Mwd << 8|
|000051c0| 29 7d 3b 0d 09 20 69 6e | 70 75 74 42 4f 4d 20 62 |)};.. in|putBOM b|
|000051d0| 6f 78 20 70 6c 61 6e 6b | 42 4f 4d 74 79 70 65 20 |ox plank|BOMtype |
|000051e0| 6d 65 6d 73 7a 20 31 36 | 29 3b 0d 09 69 66 20 24 |memsz 16|);..if $|
|000051f0| 75 73 65 73 74 61 69 6e | 20 28 73 74 61 69 6e 63 |usestain| (stainc|
|00005200| 6e 74 20 3d 20 7b 3f 20 | 73 74 61 69 6e 63 6e 74 |nt = {? |staincnt|
|00005210| 20 2b 20 28 74 6f 74 61 | 6c 70 6c 61 6e 6b 61 72 | + (tota|lplankar|
|00005220| 65 61 20 2f 20 31 35 30 | 29 7d 29 3b 0d 09 69 66 |ea / 150|)});..if|
|00005230| 20 24 75 73 65 72 65 70 | 65 6c 6c 61 6e 74 20 28 | $userep|ellant (|
|00005240| 72 65 70 65 6c 6c 61 6e | 74 63 6e 74 20 3d 20 7b |repellan|tcnt = {|
|00005250| 3f 20 72 65 70 65 6c 6c | 61 6e 74 63 6e 74 20 2b |? repell|antcnt +|
|00005260| 20 28 74 6f 74 61 6c 70 | 6c 61 6e 6b 61 72 65 61 | (totalp|lankarea|
|00005270| 20 2f 20 31 35 30 29 7d | 29 3b 0d 09 69 66 20 24 | / 150)}|);..if $|
|00005280| 75 73 65 6e 61 69 6c 73 | 20 28 0d 09 09 6e 61 69 |usenails| (...nai|
|00005290| 6c 77 65 69 67 68 74 74 | 77 6f 20 3d 20 7b 3f 20 |lweightt|wo = {? |
|000052a0| 74 6f 74 61 6c 70 6c 61 | 6e 6b 61 72 65 61 20 2a |totalpla|nkarea *|
|000052b0| 20 2e 30 36 20 2b 20 6e | 61 69 6c 77 65 69 67 68 | .06 + n|ailweigh|
|000052c0| 74 74 77 6f 7d 3b 0d 09 | 09 29 20 65 6c 73 65 20 |ttwo};..|.) else |
|000052d0| 28 0d 09 09 73 63 72 65 | 77 77 65 69 67 68 74 20 |(...scre|wweight |
|000052e0| 3d 20 7b 3f 20 74 6f 74 | 61 6c 70 6c 61 6e 6b 61 |= {? tot|alplanka|
|000052f0| 72 65 61 20 2a 20 2e 30 | 39 20 2b 20 73 63 72 65 |rea * .0|9 + scre|
|00005300| 77 77 65 69 67 68 74 7d | 3b 0d 09 09 29 3b 0d 09 |wweight}|;...);..|
|00005310| 70 72 65 63 69 73 69 6f | 6e 20 34 3b 0d 09 00 00 |precisio|n 4;....|
|00005320| 40 00 0c 50 6c 61 63 65 | 50 6c 61 6e 6b 73 00 00 |@..Place|Planks..|
|00005330| 90 0d 20 73 65 74 44 72 | 61 77 53 63 72 65 65 6e |.. setDr|awScreen|
|00005340| 20 43 6f 6e 74 72 6f 6c | 73 3b 0d 20 50 61 73 73 | Control|s;. Pass|
|00005350| 20 64 72 61 77 50 69 63 | 20 33 42 75 74 25 32 20 | drawPic| 3But%2 |
|00005360| 24 4c 6f 63 38 25 31 3b | 0d 20 73 65 74 42 6b 47 |$Loc8%1;|. setBkG|
|00005370| 6e 64 20 43 6f 6e 74 72 | 6f 6c 73 20 77 68 69 74 |nd Contr|ols whit|
|00005380| 65 20 62 6c 75 65 20 6c | 61 74 65 72 3b 0d 20 73 |e blue l|ater;. s|
|00005390| 65 74 54 65 78 74 20 32 | 31 20 31 20 39 20 31 32 |etText 2|1 1 9 12|
|000053a0| 3b 0d 20 6d 6f 76 65 54 | 6f 20 25 34 20 32 39 33 |;. moveT|o %4 293|
|000053b0| 3b 64 72 61 77 53 74 72 | 69 6e 67 20 25 33 3b 0d |;drawStr|ing %3;.|
|000053c0| 00 00 40 00 0c 44 6f 52 | 61 69 6c 50 72 69 63 65 |..@..DoR|ailPrice|
|000053d0| 00 01 4f 0d 09 6c 6f 63 | 61 6c 56 61 72 20 73 63 |..O..loc|alVar sc|
|000053e0| 61 6c 61 72 20 70 63 6e | 74 20 70 6c 65 6e 3b 0d |alar pcn|t plen;.|
|000053f0| 09 69 66 20 24 66 69 72 | 73 74 72 61 69 6c 20 28 |.if $fir|strail (|
|00005400| 0d 09 09 73 65 74 20 66 | 69 72 73 74 72 61 69 6c |...set f|irstrail|
|00005410| 20 66 61 6c 73 65 3b 0d | 09 09 70 63 6e 74 20 3d | false;.|..pcnt =|
|00005420| 20 7b 69 6e 64 65 78 20 | 31 20 24 64 61 74 61 62 | {index |1 $datab|
|00005430| 61 73 65 6c 69 6e 65 7d | 3b 0d 09 09 70 6c 65 6e |aseline}|;...plen|
|00005440| 20 3d 20 7b 69 6e 64 65 | 78 20 32 20 24 64 61 74 | = {inde|x 2 $dat|
|00005450| 61 62 61 73 65 6c 69 6e | 65 7d 3b 0d 09 09 74 6f |abaselin|e};...to|
|00005460| 74 61 6c 72 61 69 6c 6c | 65 6e 20 3d 20 70 63 6e |talraill|en = pcn|
|00005470| 74 2a 70 6c 65 6e 3b 0d | 09 09 29 0d 09 65 6c 73 |t*plen;.|..)..els|
|00005480| 65 20 28 0d 09 09 70 63 | 6e 74 20 3d 20 7b 69 6e |e (...pc|nt = {in|
|00005490| 64 65 78 20 31 20 24 64 | 61 74 61 62 61 73 65 6c |dex 1 $d|atabasel|
|000054a0| 69 6e 65 7d 3b 0d 09 09 | 70 6c 65 6e 20 3d 20 7b |ine};...|plen = {|
|000054b0| 69 6e 64 65 78 20 32 20 | 24 64 61 74 61 62 61 73 |index 2 |$databas|
|000054c0| 65 6c 69 6e 65 7d 3b 0d | 09 09 74 6f 74 61 6c 72 |eline};.|..totalr|
|000054d0| 61 69 6c 6c 65 6e 20 3d | 20 70 63 6e 74 2a 70 6c |aillen =| pcnt*pl|
|000054e0| 65 6e 2b 74 6f 74 61 6c | 72 61 69 6c 6c 65 6e 3b |en+total|raillen;|
|000054f0| 0d 09 09 29 3b 0d 09 73 | 65 74 20 72 61 69 6c 6d |...);..s|et railm|
|00005500| 65 6d 73 69 7a 65 20 7b | 69 6e 64 65 78 20 33 20 |emsize {|index 3 |
|00005510| 24 64 61 74 61 62 61 73 | 65 6c 69 6e 65 7d 3b 0d |$databas|eline};.|
|00005520| 09 00 00 40 00 0c 44 6f | 44 65 63 6b 44 69 6d 73 |...@..Do|DeckDims|
|00005530| 58 00 01 b0 0d 09 73 74 | 61 63 6b 20 64 69 6d 73 |X.....st|ack dims|
|00005540| 74 61 63 6b 20 63 6c 65 | 61 72 3b 0d 09 73 74 61 |tack cle|ar;..sta|
|00005550| 63 6b 20 64 69 6d 73 74 | 61 63 6b 20 70 75 73 68 |ck dimst|ack push|
|00005560| 20 5b 7b 3f 28 64 69 6d | 73 74 61 63 6b 72 69 67 | [{?(dim|stackrig|
|00005570| 68 74 2d 64 69 6d 73 74 | 61 63 6b 6c 65 66 74 29 |ht-dimst|ackleft)|
|00005580| 2f 32 2b 32 7d 2c 7b 3f | 64 69 6d 73 74 61 63 6b |/2+2},{?|dimstack|
|00005590| 62 6f 74 74 6f 6d 2d 34 | 7d 2c 30 5d 3b 0d 09 73 |bottom-4|},0];..s|
|000055a0| 74 61 63 6b 20 64 69 6d | 73 74 61 63 6b 20 70 75 |tack dim|stack pu|
|000055b0| 73 68 20 5b 7b 3f 28 64 | 69 6d 73 74 61 63 6b 72 |sh [{?(d|imstackr|
|000055c0| 69 67 68 74 2d 64 69 6d | 73 74 61 63 6b 6c 65 66 |ight-dim|stacklef|
|000055d0| 74 29 2f 32 2b 32 7d 2c | 7b 3f 64 69 6d 73 74 61 |t)/2+2},|{?dimsta|
|000055e0| 63 6b 62 6f 74 74 6f 6d | 2d 36 7d 2c 30 5d 3b 0d |ckbottom|-6},0];.|
|000055f0| 09 73 74 61 63 6b 20 64 | 69 6d 73 74 61 63 6b 20 |.stack d|imstack |
|00005600| 70 75 73 68 20 5b 7b 3f | 28 64 69 6d 73 74 61 63 |push [{?|(dimstac|
|00005610| 6b 72 69 67 68 74 2d 64 | 69 6d 73 74 61 63 6b 6c |kright-d|imstackl|
|00005620| 65 66 74 29 2f 32 7d 2c | 7b 3f 64 69 6d 73 74 61 |eft)/2},|{?dimsta|
|00005630| 63 6b 62 6f 74 74 6f 6d | 2d 36 7d 2c 30 5d 3b 0d |ckbottom|-6},0];.|
|00005640| 09 66 6f 72 20 69 20 3d | 20 28 25 31 29 20 74 6f |.for i =| (%1) to|
|00005650| 20 30 20 28 0d 09 09 73 | 74 61 63 6b 20 64 69 6d | 0 (...s|tack dim|
|00005660| 73 74 61 63 6b 20 70 75 | 73 68 20 5b 7b 69 6e 64 |stack pu|sh [{ind|
|00005670| 65 78 20 24 69 20 24 64 | 69 6d 73 74 61 63 6b 78 |ex $i $d|imstackx|
|00005680| 7d 2c 7b 3f 64 69 6d 73 | 74 61 63 6b 62 6f 74 74 |},{?dims|tackbott|
|00005690| 6f 6d 7d 2c 30 5d 3b 0d | 09 09 29 3b 0d 09 50 61 |om},0];.|..);..Pa|
|000056a0| 73 73 20 64 69 6d 65 6e | 73 69 6f 6e 20 5b 31 2c |ss dimen|sion [1,|
|000056b0| 30 2c 30 5d 20 5b 30 2c | 31 2c 30 5d 20 31 20 30 |0,0] [0,|1,0] 1 0|
|000056c0| 78 35 37 33 30 20 23 3a | 27 22 20 7b 73 74 61 63 |x5730 #:|'" {stac|
|000056d0| 6b 20 64 69 6d 73 74 61 | 63 6b 20 6c 6f 6f 6b 7d |k dimsta|ck look}|
|000056e0| 3b 0d 09 00 00 40 00 0c | 43 6f 6d 70 6c 65 78 44 |;....@..|ComplexD|
|000056f0| 65 63 6b 00 01 26 0d 20 | 6d 61 63 72 6f 20 43 6f |eck..&. |macro Co|
|00005700| 6d 70 6c 65 78 32 20 28 | 43 6f 6d 70 6c 65 78 33 |mplex2 (|Complex3|
|00005710| 20 25 31 29 3b 0d 20 70 | 72 65 63 69 73 69 6f 6e | %1);. p|recision|
|00005720| 20 34 3b 0d 2a 2a 20 31 | 20 69 73 20 44 65 63 6b | 4;.** 1| is Deck|
|00005730| 20 23 3a 20 32 20 69 73 | 20 46 69 72 73 74 20 52 | #: 2 is| First R|
|00005740| 65 63 74 20 6f 66 20 53 | 69 6d 70 6c 65 20 64 65 |ect of S|imple de|
|00005750| 63 6b 3a 33 20 69 73 20 | 53 65 63 6f 6e 64 20 52 |ck:3 is |Second R|
|00005760| 65 63 74 3a 34 20 69 73 | 20 54 68 69 72 64 20 52 |ect:4 is| Third R|
|00005770| 65 63 74 3b 0d 20 69 66 | 20 28 4c 25 31 31 20 3e |ect;. if| (L%11 >|
|00005780| 20 4c 25 31 32 29 20 28 | 0d 20 20 69 66 20 28 4f | L%12) (|. if (O|
|00005790| 43 50 74 58 25 31 32 20 | 3e 20 4f 43 50 74 58 25 |CPtX%12 |> OCPtX%|
|000057a0| 31 31 29 20 28 43 53 65 | 74 55 70 31 20 25 31 29 |11) (CSe|tUp1 %1)|
|000057b0| 20 65 6c 73 65 20 28 43 | 53 65 74 55 70 32 20 25 | else (C|SetUp2 %|
|000057c0| 31 29 3b 0d 20 29 20 65 | 6c 73 65 20 28 0d 20 20 |1);. ) e|lse (. |
|000057d0| 69 66 20 28 4f 43 50 74 | 58 25 31 31 20 3e 20 4f |if (OCPt|X%11 > O|
|000057e0| 43 50 74 58 25 31 32 29 | 20 28 43 53 65 74 55 70 |CPtX%12)| (CSetUp|
|000057f0| 33 20 25 31 29 20 65 6c | 73 65 20 28 43 53 65 74 |3 %1) el|se (CSet|
|00005800| 55 70 34 20 25 31 29 3b | 0d 20 29 3b 0d 20 43 6f |Up4 %1);|. );. Co|
|00005810| 6d 70 6c 65 78 32 20 25 | 31 3b 0d 00 00 40 00 0c |mplex2 %|1;...@..|
|00005820| 44 6f 53 74 61 69 72 44 | 61 74 61 00 01 89 0d 09 |DoStairD|ata.....|
|00005830| 6c 6f 63 61 6c 56 61 72 | 20 73 63 61 6c 61 72 20 |localVar| scalar |
|00005840| 70 63 6e 74 20 70 6c 65 | 6e 3b 0d 09 69 66 20 24 |pcnt ple|n;..if $|
|00005850| 66 69 72 73 74 73 74 61 | 69 72 20 28 0d 09 09 73 |firststa|ir (...s|
|00005860| 65 74 20 66 69 72 73 74 | 73 74 61 69 72 20 66 61 |et first|stair fa|
|00005870| 6c 73 65 3b 0d 09 09 73 | 65 74 20 75 73 65 69 6e |lse;...s|et usein|
|00005880| 76 73 74 61 69 72 6e 75 | 6d 20 3d 20 72 6f 77 6e |vstairnu|m = rown|
|00005890| 75 6d 3b 0d 09 09 70 63 | 6e 74 20 3d 20 7b 69 6e |um;...pc|nt = {in|
|000058a0| 64 65 78 20 31 20 24 64 | 61 74 61 62 61 73 65 6c |dex 1 $d|atabasel|
|000058b0| 69 6e 65 7d 3b 0d 09 09 | 70 6c 65 6e 20 3d 20 7b |ine};...|plen = {|
|000058c0| 69 6e 64 65 78 20 32 20 | 24 64 61 74 61 62 61 73 |index 2 |$databas|
|000058d0| 65 6c 69 6e 65 7d 3b 0d | 09 09 74 6f 74 61 6c 73 |eline};.|..totals|
|000058e0| 74 61 69 72 6c 65 6e 20 | 3d 20 70 63 6e 74 2a 70 |tairlen |= pcnt*p|
|000058f0| 6c 65 6e 3b 0d 09 09 29 | 0d 09 65 6c 73 65 20 28 |len;...)|..else (|
|00005900| 0d 09 09 70 63 6e 74 20 | 3d 20 7b 69 6e 64 65 78 |...pcnt |= {index|
|00005910| 20 31 20 24 64 61 74 61 | 62 61 73 65 6c 69 6e 65 | 1 $data|baseline|
|00005920| 7d 3b 0d 09 09 70 6c 65 | 6e 20 3d 20 7b 69 6e 64 |};...ple|n = {ind|
|00005930| 65 78 20 32 20 24 64 61 | 74 61 62 61 73 65 6c 69 |ex 2 $da|tabaseli|
|00005940| 6e 65 7d 3b 0d 09 09 74 | 6f 74 61 6c 73 74 61 69 |ne};...t|otalstai|
|00005950| 72 6c 65 6e 20 3d 20 70 | 63 6e 74 2a 70 6c 65 6e |rlen = p|cnt*plen|
|00005960| 2b 74 6f 74 61 6c 73 74 | 61 69 72 6c 65 6e 3b 0d |+totalst|airlen;.|
|00005970| 09 09 72 6f 77 6e 75 6d | 20 3d 20 72 6f 77 6e 75 |..rownum| = rownu|
|00005980| 6d 2d 31 3b 0d 09 09 29 | 3b 0d 09 73 65 74 20 73 |m-1;...)|;..set s|
|00005990| 74 61 69 72 6d 65 6d 73 | 69 7a 65 20 7b 69 6e 64 |tairmems|ize {ind|
|000059a0| 65 78 20 33 20 24 64 61 | 74 61 62 61 73 65 6c 69 |ex 3 $da|tabaseli|
|000059b0| 6e 65 7d 3b 0d 09 00 00 | 40 00 0c 44 6f 44 65 63 |ne};....|@..DoDec|
|000059c0| 6b 44 69 6d 73 59 00 01 | ac 0d 09 73 74 61 63 6b |kDimsY..|...stack|
|000059d0| 20 64 69 6d 73 74 61 63 | 6b 20 63 6c 65 61 72 3b | dimstac|k clear;|
|000059e0| 0d 09 73 74 61 63 6b 20 | 64 69 6d 73 74 61 63 6b |..stack |dimstack|
|000059f0| 20 70 75 73 68 20 5b 7b | 3f 64 69 6d 73 74 61 63 | push [{|?dimstac|
|00005a00| 6b 72 69 67 68 74 2b 34 | 7d 2c 7b 3f 28 64 69 6d |kright+4|},{?(dim|
|00005a10| 73 74 61 63 6b 74 6f 70 | 2d 64 69 6d 73 74 61 63 |stacktop|-dimstac|
|00005a20| 6b 62 6f 74 74 6f 6d 29 | 2f 32 2b 32 7d 2c 30 5d |kbottom)|/2+2},0]|
|00005a30| 3b 0d 09 73 74 61 63 6b | 20 64 69 6d 73 74 61 63 |;..stack| dimstac|
|00005a40| 6b 20 70 75 73 68 20 5b | 7b 3f 64 69 6d 73 74 61 |k push [|{?dimsta|
|00005a50| 63 6b 72 69 67 68 74 2b | 36 7d 2c 7b 3f 28 64 69 |ckright+|6},{?(di|
|00005a60| 6d 73 74 61 63 6b 74 6f | 70 2d 64 69 6d 73 74 61 |mstackto|p-dimsta|
|00005a70| 63 6b 62 6f 74 74 6f 6d | 29 2f 32 2b 32 7d 2c 30 |ckbottom|)/2+2},0|
|00005a80| 5d 3b 0d 09 73 74 61 63 | 6b 20 64 69 6d 73 74 61 |];..stac|k dimsta|
|00005a90| 63 6b 20 70 75 73 68 20 | 5b 7b 3f 64 69 6d 73 74 |ck push |[{?dimst|
|00005aa0| 61 63 6b 72 69 67 68 74 | 2b 36 7d 2c 7b 3f 28 64 |ackright|+6},{?(d|
|00005ab0| 69 6d 73 74 61 63 6b 74 | 6f 70 2d 64 69 6d 73 74 |imstackt|op-dimst|
|00005ac0| 61 63 6b 62 6f 74 74 6f | 6d 29 2f 32 7d 2c 30 5d |ackbotto|m)/2},0]|
|00005ad0| 3b 0d 09 66 6f 72 20 69 | 20 3d 20 28 25 31 29 20 |;..for i| = (%1) |
|00005ae0| 74 6f 20 30 20 28 0d 09 | 09 73 74 61 63 6b 20 64 |to 0 (..|.stack d|
|00005af0| 69 6d 73 74 61 63 6b 20 | 70 75 73 68 20 5b 7b 3f |imstack |push [{?|
|00005b00| 64 69 6d 73 74 61 63 6b | 72 69 67 68 74 7d 2c 7b |dimstack|right},{|
|00005b10| 69 6e 64 65 78 20 24 69 | 20 24 64 69 6d 73 74 61 |index $i| $dimsta|
|00005b20| 63 6b 79 7d 2c 30 5d 3b | 0d 09 09 29 3b 0d 09 50 |cky},0];|...);..P|
|00005b30| 61 73 73 20 64 69 6d 65 | 6e 73 69 6f 6e 20 5b 31 |ass dime|nsion [1|
|00005b40| 2c 30 2c 30 5d 20 5b 30 | 2c 31 2c 30 5d 20 32 20 |,0,0] [0|,1,0] 2 |
|00005b50| 30 78 35 37 33 30 20 23 | 3a 27 22 20 7b 73 74 61 |0x5730 #|:'" {sta|
|00005b60| 63 6b 20 64 69 6d 73 74 | 61 63 6b 20 6c 6f 6f 6b |ck dimst|ack look|
|00005b70| 7d 3b 0d 09 00 00 40 00 | 0c 44 65 66 69 6e 65 4d |};....@.|.DefineM|
|00005b80| 65 6e 75 73 00 02 46 0d | 20 64 65 66 48 4d 65 6e |enus..F.| defHMen|
|00005b90| 75 20 31 31 0d 20 20 28 | 33 36 20 49 6e 63 68 65 |u 11. (|36 Inche|
|00005ba0| 73 29 20 28 53 74 61 69 | 72 57 69 64 74 68 20 3d |s) (Stai|rWidth =|
|00005bb0| 20 33 36 2f 31 32 3b 43 | 68 65 63 6b 4d 65 6e 75 | 36/12;C|heckMenu|
|00005bc0| 20 31 31 20 31 31 20 31 | 20 30 29 0d 20 20 28 33 | 11 11 1| 0). (3|
|00005bd0| 38 20 49 6e 63 68 65 73 | 29 20 28 53 74 61 69 72 |8 Inches|) (Stair|
|00005be0| 57 69 64 74 68 20 3d 20 | 33 38 2f 31 32 3b 43 68 |Width = |38/12;Ch|
|00005bf0| 65 63 6b 4d 65 6e 75 20 | 31 31 20 31 31 20 32 20 |eckMenu |11 11 2 |
|00005c00| 30 29 0d 20 20 28 34 30 | 20 49 6e 63 68 65 73 29 |0). (40| Inches)|
|00005c10| 20 28 53 74 61 69 72 57 | 69 64 74 68 20 3d 20 34 | (StairW|idth = 4|
|00005c20| 30 2f 31 32 3b 43 68 65 | 63 6b 4d 65 6e 75 20 31 |0/12;Che|ckMenu 1|
|00005c30| 31 20 31 31 20 33 20 30 | 29 0d 20 20 28 34 32 20 |1 11 3 0|). (42 |
|00005c40| 69 6e 63 68 65 73 29 20 | 28 53 74 61 69 72 57 69 |inches) |(StairWi|
|00005c50| 64 74 68 20 3d 20 34 32 | 2f 31 32 3b 43 68 65 63 |dth = 42|/12;Chec|
|00005c60| 6b 4d 65 6e 75 20 31 31 | 20 31 31 20 34 20 30 29 |kMenu 11| 11 4 0)|
|00005c70| 0d 20 20 28 34 38 20 69 | 6e 63 68 65 73 29 20 28 |. (48 i|nches) (|
|00005c80| 53 74 61 69 72 57 69 64 | 74 68 20 3d 20 34 38 2f |StairWid|th = 48/|
|00005c90| 31 32 3b 43 68 65 63 6b | 4d 65 6e 75 20 31 31 20 |12;Check|Menu 11 |
|00005ca0| 31 31 20 35 20 30 29 0d | 20 20 28 36 30 20 69 6e |11 5 0).| (60 in|
|00005cb0| 63 68 65 73 29 20 28 53 | 74 61 69 72 57 69 64 74 |ches) (S|tairWidt|
|00005cc0| 68 20 3d 20 36 30 2f 31 | 32 3b 43 68 65 63 6b 4d |h = 60/1|2;CheckM|
|00005cd0| 65 6e 75 20 31 31 20 31 | 31 20 36 20 30 29 0d 20 |enu 11 1|1 6 0). |
|00005ce0| 20 4f 74 68 65 72 20 28 | 73 65 74 20 54 65 6d 70 | Other (|set Temp|
|00005cf0| 20 3d 20 53 74 61 69 72 | 57 69 64 74 68 3b 0d 20 | = Stair|Width;. |
|00005d00| 20 20 73 65 74 20 4e 75 | 6d 20 3d 20 7b 3f 53 74 | set Nu|m = {?St|
|00005d10| 61 69 72 57 69 64 74 68 | 2a 31 32 7d 3b 4e 75 6d |airWidth|*12};Num|
|00005d20| 44 6c 67 3b 0d 20 20 20 | 73 65 74 20 53 74 61 69 |Dlg;. |set Stai|
|00005d30| 72 57 69 64 74 68 20 3d | 20 7b 65 63 68 6f 20 24 |rWidth =| {echo $|
|00005d40| 4e 75 6d 7d 2f 31 32 3b | 0d 20 20 20 43 68 65 63 |Num}/12;|. Chec|
|00005d50| 6b 4d 65 6e 75 20 31 31 | 20 31 31 20 37 20 30 3b |kMenu 11| 11 7 0;|
|00005d60| 0d 20 20 20 69 66 20 7b | 53 74 61 69 72 57 69 64 |. if {|StairWid|
|00005d70| 74 68 20 3c 20 33 7d 20 | 28 73 65 74 20 53 74 61 |th < 3} |(set Sta|
|00005d80| 69 72 57 69 64 74 68 20 | 3d 20 33 3b 43 68 65 63 |irWidth |= 3;Chec|
|00005d90| 6b 4d 65 6e 75 20 31 31 | 20 31 31 20 31 20 30 29 |kMenu 11| 11 1 0)|
|00005da0| 29 3b 0d 20 53 74 61 69 | 72 57 69 64 74 68 20 3d |);. Stai|rWidth =|
|00005db0| 20 33 36 2f 31 32 3b 43 | 68 65 63 6b 4d 65 6e 75 | 36/12;C|heckMenu|
|00005dc0| 20 31 31 20 31 31 20 31 | 20 30 3b 0d 00 00 40 00 | 11 11 1| 0;...@.|
|00005dd0| 09 44 72 61 77 45 6c 65 | 76 00 00 6d 0d 20 73 65 |.DrawEle|v..m. se|
|00005de0| 74 54 65 78 74 20 30 20 | 31 20 39 20 31 32 3b 0d |tText 0 |1 9 12;.|
|00005df0| 20 73 65 74 42 6b 47 6e | 64 20 45 6c 65 76 20 77 | setBkGn|d Elev w|
|00005e00| 68 69 74 65 20 62 6c 75 | 65 20 6c 61 74 65 72 3b |hite blu|e later;|
|00005e10| 0d 20 72 65 61 64 50 69 | 63 74 75 72 65 20 45 6c |. readPi|cture El|
|00005e20| 65 76 50 69 63 74 20 45 | 6c 65 76 20 79 65 73 20 |evPict E|lev yes |
|00005e30| 6e 6f 77 20 24 43 75 72 | 72 65 6e 74 28 45 6c 65 |now $Cur|rent(Ele|
|00005e40| 76 50 69 63 74 29 3b 0d | 00 00 40 00 09 5a 65 72 |vPict);.|..@..Zer|
|00005e50| 6f 44 61 74 61 00 01 8b | 0d 20 4c 31 31 20 3d 20 |oData...|. L11 = |
|00005e60| 30 3b 4c 31 32 20 3d 20 | 30 3b 4c 31 33 20 3d 20 |0;L12 = |0;L13 = |
|00005e70| 30 3b 0d 20 57 31 31 20 | 3d 20 30 3b 57 31 32 20 |0;. W11 |= 0;W12 |
|00005e80| 3d 20 30 3b 57 31 33 20 | 3d 20 30 3b 0d 20 43 50 |= 0;W13 |= 0;. CP|
|00005e90| 74 58 31 31 20 3d 20 30 | 3b 43 50 74 58 31 32 20 |tX11 = 0|;CPtX12 |
|00005ea0| 3d 20 30 3b 43 50 74 58 | 31 33 20 3d 20 30 3b 0d |= 0;CPtX|13 = 0;.|
|00005eb0| 20 43 50 74 59 31 31 20 | 3d 20 30 3b 43 50 74 59 | CPtY11 |= 0;CPtY|
|00005ec0| 31 32 20 3d 20 43 50 74 | 59 31 31 2d 57 31 31 3b |12 = CPt|Y11-W11;|
|00005ed0| 43 50 74 59 31 33 20 3d | 20 30 3b 0d 20 4c 32 31 |CPtY13 =| 0;. L21|
|00005ee0| 20 3d 20 30 3b 4c 32 32 | 20 3d 20 30 3b 4c 32 33 | = 0;L22| = 0;L23|
|00005ef0| 20 3d 20 30 3b 0d 20 57 | 32 31 20 3d 20 30 3b 57 | = 0;. W|21 = 0;W|
|00005f00| 32 32 20 3d 20 30 3b 57 | 32 33 20 3d 20 30 3b 0d |22 = 0;W|23 = 0;.|
|00005f10| 20 43 50 74 58 32 31 20 | 3d 20 30 3b 43 50 74 58 | CPtX21 |= 0;CPtX|
|00005f20| 32 32 20 3d 20 30 3b 43 | 50 74 58 32 33 20 3d 20 |22 = 0;C|PtX23 = |
|00005f30| 30 3b 0d 20 43 50 74 59 | 32 31 20 3d 20 30 3b 43 |0;. CPtY|21 = 0;C|
|00005f40| 50 74 59 32 32 20 3d 20 | 43 50 74 59 32 31 2d 57 |PtY22 = |CPtY21-W|
|00005f50| 32 31 3b 43 50 74 59 32 | 33 20 3d 20 30 3b 0d 20 |21;CPtY2|3 = 0;. |
|00005f60| 4c 33 31 20 3d 20 30 3b | 4c 33 32 20 3d 20 30 3b |L31 = 0;|L32 = 0;|
|00005f70| 4c 33 33 20 3d 20 30 3b | 0d 20 57 33 31 20 3d 20 |L33 = 0;|. W31 = |
|00005f80| 30 3b 57 33 32 20 3d 20 | 30 3b 57 33 33 20 3d 20 |0;W32 = |0;W33 = |
|00005f90| 30 3b 0d 20 43 50 74 58 | 33 31 20 3d 20 30 3b 43 |0;. CPtX|31 = 0;C|
|00005fa0| 50 74 58 33 32 20 3d 20 | 30 3b 43 50 74 58 33 33 |PtX32 = |0;CPtX33|
|00005fb0| 20 3d 20 30 3b 0d 20 43 | 50 74 59 33 31 20 3d 20 | = 0;. C|PtY31 = |
|00005fc0| 30 3b 43 50 74 59 33 32 | 20 3d 20 43 50 74 59 33 |0;CPtY32| = CPtY3|
|00005fd0| 31 2d 57 33 31 3b 43 50 | 74 59 33 33 20 3d 20 30 |1-W31;CP|tY33 = 0|
|00005fe0| 3b 0d 00 00 40 00 0c 42 | 75 69 6c 64 49 4f 72 64 |;...@..B|uildIOrd|
|00005ff0| 65 72 00 01 12 0d 20 6c | 6f 63 61 6c 56 61 72 20 |er.... l|ocalVar |
|00006000| 73 63 61 6c 61 72 20 74 | 65 6d 70 20 6e 75 6d 3b |scalar t|emp num;|
|00006010| 0d 20 66 6f 72 20 6d 20 | 3d 20 30 20 74 6f 20 7b |. for m |= 0 to {|
|00006020| 63 6f 75 6e 74 53 74 72 | 69 6e 67 20 24 74 65 6d |countStr|ing $tem|
|00006030| 70 7d 2d 31 20 28 0d 20 | 20 20 74 65 6d 70 20 3d |p}-1 (. | temp =|
|00006040| 20 7b 3f 28 b0 25 36 28 | 7b 69 6e 64 65 78 20 6d | {?(.%6(|{index m|
|00006050| 20 24 74 65 6d 70 7d 29 | 2a 31 30 29 7d 3b 0d 20 | $temp})|*10)};. |
|00006060| 20 69 66 20 28 24 52 65 | 76 46 6c 61 67 20 22 3d | if ($Re|vFlag "=|
|00006070| 3d 20 66 61 6c 73 65 29 | 20 28 0d 20 20 20 6e 75 |= false)| (. nu|
|00006080| 6d 20 3d 20 7b 3f 3f 20 | 74 65 6d 70 20 3c 3c 20 |m = {?? |temp << |
|00006090| 34 20 7c 20 25 35 7d 0d | 20 20 29 20 65 6c 73 65 |4 | %5}.| ) else|
|000060a0| 20 28 0d 20 20 20 6e 75 | 6d 20 3d 20 31 30 30 30 | (. nu|m = 1000|
|000060b0| 30 30 2d 7b 3f 3f 20 74 | 65 6d 70 20 3c 3c 20 34 |00-{?? t|emp << 4|
|000060c0| 20 7c 20 25 35 7d 0d 20 | 20 29 3b 0d 20 20 20 73 | | %5}. | );. s|
|000060d0| 65 74 20 53 56 61 6c 20 | 7b 73 6f 72 74 56 61 6c |et SVal |{sortVal|
|000060e0| 20 24 53 56 61 6c 28 20 | 29 7b 3f 6e 75 6d 7d 7d | $SVal( |){?num}}|
|000060f0| 3b 0d 20 20 73 65 74 20 | 74 65 6d 70 32 20 25 36 |;. set |temp2 %6|
|00006100| 3b 0d 20 29 3b 0d 00 00 | 40 00 09 44 72 61 77 52 |;. );...|@..DrawR|
|00006110| 65 63 74 00 01 b6 0d 20 | 63 6f 6e 64 20 28 42 41 |ect.... |cond (BA|
|00006120| 25 31 25 32 20 3d 3d 20 | 30 29 20 63 61 6e 63 65 |%1%2 == |0) cance|
|00006130| 6c 0d 20 20 20 20 20 20 | 74 72 75 65 20 28 0d 20 |l. |true (. |
|00006140| 69 66 20 28 24 46 6c 61 | 67 42 65 74 20 22 3d 3d |if ($Fla|gBet "==|
|00006150| 20 74 72 75 65 29 20 28 | 42 41 25 31 25 32 20 3d | true) (|BA%1%2 =|
|00006160| 20 42 41 25 31 25 32 2d | 31 29 3b 0d 20 54 65 6d | BA%1%2-|1);. Tem|
|00006170| 70 31 20 3d 20 45 6c 65 | 76 25 31 2d 50 6c 61 6e |p1 = Ele|v%1-Plan|
|00006180| 6b 54 68 2d 4a 44 3b 0d | 20 54 65 6d 70 33 20 3d |kTh-JD;.| Temp3 =|
|00006190| 20 42 50 59 25 31 25 32 | 2d 57 25 31 25 32 2b 42 | BPY%1%2|-W%1%2+B|
|000061a0| 65 61 6d 4f 48 3b 0d 66 | 6f 72 20 69 20 3d 20 30 |eamOH;.f|or i = 0|
|000061b0| 20 74 6f 20 42 41 25 31 | 25 32 2d 31 20 28 0d 20 | to BA%1|%2-1 (. |
|000061c0| 54 65 6d 70 32 20 3d 20 | 42 50 58 25 31 25 32 2d |Temp2 = |BPX%1%2-|
|000061d0| 50 48 2b 69 2a 4a 53 25 | 31 25 32 3b 0d 20 54 65 |PH+i*JS%|1%2;. Te|
|000061e0| 6d 70 32 61 20 3d 20 42 | 50 58 25 31 25 32 2b 50 |mp2a = B|PX%1%2+P|
|000061f0| 48 2b 69 2a 4a 53 25 31 | 25 32 3b 0d 20 6c 61 79 |H+i*JS%1|%2;. lay|
|00006200| 65 72 20 63 75 72 72 65 | 6e 74 20 33 32 3b 0d 20 |er curre|nt 32;. |
|00006210| 44 72 61 77 42 65 61 6d | 56 6f 6c 73 20 25 31 20 |DrawBeam|Vols %1 |
|00006220| 25 32 3b 0d 20 69 66 20 | 28 42 50 25 31 25 32 20 |%2;. if |(BP%1%2 |
|00006230| 3c 20 31 29 20 28 42 50 | 25 31 25 32 20 3d 20 31 |< 1) (BP|%1%2 = 1|
|00006240| 3b 42 53 25 31 25 32 20 | 3d 20 57 25 31 25 32 2d |;BS%1%2 |= W%1%2-|
|00006250| 42 65 61 6d 4f 48 2a 32 | 29 3b 0d 20 66 6f 72 20 |BeamOH*2|);. for |
|00006260| 6a 20 3d 20 30 20 74 6f | 20 42 50 25 31 25 32 20 |j = 0 to| BP%1%2 |
|00006270| 28 0d 20 20 54 65 6d 70 | 34 20 3d 20 42 50 59 25 |(. Temp|4 = BPY%|
|00006280| 31 25 32 2d 6a 2a 42 53 | 25 31 25 32 2b 50 48 57 |1%2-j*BS|%1%2+PHW|
|00006290| 3b 0d 20 20 6c 61 79 65 | 72 20 63 75 72 72 65 6e |;. laye|r curren|
|000062a0| 74 20 33 31 3b 0d 20 20 | 44 72 61 77 50 6f 73 74 |t 31;. |DrawPost|
|000062b0| 56 6f 6c 73 20 25 31 20 | 25 32 3b 0d 20 20 20 29 |Vols %1 |%2;. )|
|000062c0| 3b 0d 20 20 29 3b 0d 20 | 29 3b 0d 00 00 40 00 0a |;. );. |);...@..|
|000062d0| 50 6c 61 63 65 48 61 6e | 32 00 00 72 0d 20 73 65 |PlaceHan|2..r. se|
|000062e0| 74 44 72 61 77 53 63 72 | 65 65 6e 20 43 6f 6e 74 |tDrawScr|een Cont|
|000062f0| 72 6f 6c 73 3b 0d 20 50 | 61 73 73 20 64 72 61 77 |rols;. P|ass draw|
|00006300| 50 69 63 20 32 42 75 74 | 25 31 20 24 4c 6f 63 37 |Pic 2But|%1 $Loc7|
|00006310| 25 32 3b 0d 20 73 65 74 | 42 6b 47 6e 64 20 43 6f |%2;. set|BkGnd Co|
|00006320| 6e 74 72 6f 6c 73 20 77 | 68 69 74 65 20 62 6c 75 |ntrols w|hite blu|
|00006330| 65 20 6c 61 74 65 72 3b | 0d 20 73 65 74 54 65 78 |e later;|. setTex|
|00006340| 74 20 32 30 20 31 20 39 | 20 31 38 3b 0d 00 00 40 |t 20 1 9| 18;...@|
|00006350| 00 0c 44 65 74 44 65 63 | 6b 54 79 70 65 00 00 8e |..DetDec|kType...|
|00006360| 0d 2a 2a 20 25 31 20 69 | 73 20 64 65 63 6b 20 23 |.** %1 i|s deck #|
|00006370| 3b 0d 20 70 72 65 63 69 | 73 69 6f 6e 20 34 3b 0d |;. preci|sion 4;.|
|00006380| 20 69 66 20 28 4c 25 31 | 32 20 3d 3d 20 30 29 20 | if (L%1|2 == 0) |
|00006390| 28 0d 20 20 69 66 20 28 | 4c 25 31 33 20 3d 3d 20 |(. if (|L%13 == |
|000063a0| 30 29 20 28 44 65 63 6b | 54 79 70 65 32 20 25 31 |0) (Deck|Type2 %1|
|000063b0| 29 20 65 6c 73 65 20 28 | 43 53 33 32 61 20 25 31 |) else (|CS32a %1|
|000063c0| 3b 43 6f 6d 70 6c 65 78 | 32 20 25 31 29 3b 0d 20 |;Complex|2 %1);. |
|000063d0| 29 20 65 6c 73 65 20 28 | 0d 20 20 44 65 63 6b 54 |) else (|. DeckT|
|000063e0| 79 70 65 32 20 25 31 3b | 0d 20 29 3b 0d 00 00 40 |ype2 %1;|. );...@|
|000063f0| 00 09 4c 61 73 74 48 65 | 6c 70 00 00 83 0d 20 6d |..LastHe|lp.... m|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.